Last active
April 9, 2020 23:35
-
-
Save abhioncbr/51a120e34a30c9907e3fa1ebf3bf21dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: scheduling.k8s.io/v1 | |
kind: PriorityClass | |
metadata: | |
name: high-priority-preempting | |
value: 1000000 | |
preemptionPolicy: PreemptLowerPriority | |
globalDefault: false | |
description: "This priority class will cause other lower priority pods to be preempted." | |
--- | |
apiVersion: scheduling.k8s.io/v1 | |
kind: PriorityClass | |
metadata: | |
name: high-priority-nonpreempting | |
value: 1000000 | |
preemptionPolicy: Never | |
globalDefault: false | |
description: "This priority class will not cause other pods to be preempted." | |
--- | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nginx-preempting | |
labels: | |
env: test | |
spec: | |
containers: | |
- name: nginx-preempting | |
image: nginx-preempting | |
imagePullPolicy: IfNotPresent | |
priorityClassName: high-priority-preempting | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nginx-nonpreempting | |
labels: | |
env: test | |
spec: | |
containers: | |
- name: nginx-nonpreempting | |
image: nginx-nonpreempting | |
imagePullPolicy: IfNotPresent | |
priorityClassName: high-priority-nonpreempting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment