Created
April 17, 2023 14:24
-
-
Save ssbostan/9d1f9ba81369106e892d1e0390a6523d to your computer and use it in GitHub Desktop.
Kubernetes Hacks and Tricks - #8 Pod Preemption, Eviction and Priority classes
This file contains hidden or 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: default-pc | |
labels: | |
app.kubernetes.io/created-by: ssbostan | |
description: Priority class to run all pods without priority class name | |
globalDefault: true | |
preemptionPolicy: Never | |
value: 10000 | |
--- | |
apiVersion: scheduling.k8s.io/v1 | |
kind: PriorityClass | |
metadata: | |
name: dev-pc | |
labels: | |
app.kubernetes.io/created-by: ssbostan | |
description: Priority class to run all dev pods | |
globalDefault: false | |
preemptionPolicy: PreemptLowerPriority | |
value: 20000 | |
--- | |
apiVersion: scheduling.k8s.io/v1 | |
kind: PriorityClass | |
metadata: | |
name: prod-pc | |
labels: | |
app.kubernetes.io/created-by: ssbostan | |
description: Priority class to run all prod pods | |
globalDefault: false | |
preemptionPolicy: PreemptLowerPriority | |
value: 30000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment