Skip to content

Commit 98d8836

Browse files
authored
Merge pull request #31267 from mengjiao-liu/fix-PreemptionPolicy
Fix wrong capitalization for preemptionPolicy field
2 parents aae389a + a35da2b commit 98d8836

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ description: "This priority class should be used for XYZ service pods only."
106106
107107
{{< feature-state for_k8s_version="v1.19" state="beta" >}}
108108
109-
Pods with `PreemptionPolicy: Never` will be placed in the scheduling queue
109+
Pods with `preemptionPolicy: Never` will be placed in the scheduling queue
110110
ahead of lower-priority pods,
111111
but they cannot preempt other pods.
112112
A non-preempting pod waiting to be scheduled will stay in the scheduling queue,
@@ -122,16 +122,16 @@ allowing other pods with lower priority to be scheduled before them.
122122
Non-preempting pods may still be preempted by other,
123123
high-priority pods.
124124

125-
`PreemptionPolicy` defaults to `PreemptLowerPriority`,
125+
`preemptionPolicy` defaults to `PreemptLowerPriority`,
126126
which will allow pods of that PriorityClass to preempt lower-priority pods
127127
(as is existing default behavior).
128-
If `PreemptionPolicy` is set to `Never`,
128+
If `preemptionPolicy` is set to `Never`,
129129
pods in that PriorityClass will be non-preempting.
130130

131131
An example use case is for data science workloads.
132132
A user may submit a job that they want to be prioritized above other workloads,
133133
but do not wish to discard existing work by preempting running pods.
134-
The high priority job with `PreemptionPolicy: Never` will be scheduled
134+
The high priority job with `preemptionPolicy: Never` will be scheduled
135135
ahead of other queued pods,
136136
as soon as sufficient cluster resources "naturally" become free.
137137

0 commit comments

Comments
 (0)