Skip to content

Commit 6ad9aab

Browse files
authored
fix: fix wrong PreemptionToleration policy example
1 parent bb56af1 commit 6ad9aab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/preemptiontoleration/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ Preemption toleration policy can be defined on each `PriorityClass` resource by
3939
# Any pod P in this priority class can not be preempted (can tolerate preemption)
4040
# - by preemptor pods with priority < 10000
4141
# - and if P is within 1h since being scheduled
42+
apiVersion: scheduling.k8s.io/v1
4243
kind: PriorityClass
4344
metadata:
4445
name: toleration-policy-sample
45-
annotation:
46+
annotations:
4647
preemption-toleration.scheduling.x-k8s.io/minimum-preemptable-priority: "10000"
4748
preemption-toleration.scheduling.x-k8s.io/toleration-seconds: "3600"
4849
value: 8000

0 commit comments

Comments
 (0)