Skip to content

Commit

Permalink
Seperate priority and preemption (kubernetes#8144)
Browse files Browse the repository at this point in the history
  • Loading branch information
resouer authored and k82cn committed Jun 11, 2018
1 parent 7d0bce5 commit 256f87e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions content/en/docs/concepts/configuration/pod-priority-preemption.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,27 @@ scheduler. After the feature is disabled, the existing Pods keep their priority
fields, but preemption is disabled, and priority fields are ignored, and you
cannot set `priorityClassName` in new Pods.

## How to disable preemption

In Kubernetes 1.11 and later, preemption is controlled by a kube-scheduler flag `disablePreemption`, which is set to `false` by default.

If you want to disable preemption, just set `disablePreemption` to true. This will keep pod priority enabled while preemption is disabled. Here is a sample configuration:

```yaml
apiVersion: componentconfig/v1alpha1
kind: KubeSchedulerConfiguration
algorithmSource:
provider: DefaultProvider

...

disablePreemption: true

```
Please note: although preemption of scheduler is enabled by default, preemption will not happen if `PodPriority` feature is not available.


## PriorityClass

A PriorityClass is a non-namespaced object that defines a mapping from a priority
Expand Down

0 comments on commit 256f87e

Please sign in to comment.