Skip to content

Commit

Permalink
control-plane, Add Priority class (#317)
Browse files Browse the repository at this point in the history
Add system-cluster-critical to kubemacpool pods.
Since kmp pods aren't bound to a specific node,
yet those are important pods, assign system-cluster-critical
pc to them.
This will make the control plane less sensitive to preemption
than user workloads.

Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval authored Jun 23, 2021
1 parent 3a91b00 commit 34127b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/default/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ spec:
- name: tls-key-pair
readOnly: true
mountPath: /tmp/k8s-webhook-server/serving-certs/
priorityClassName: system-cluster-critical
terminationGracePeriodSeconds: 5
volumes:
- name: tls-key-pair
Expand Down Expand Up @@ -167,6 +168,7 @@ spec:
value: "4380h0m0s" # Half Year
- name: CERT_OVERLAP_INTERVAL
value: "24h0m0s" # One day
priorityClassName: system-cluster-critical
terminationGracePeriodSeconds: 5
---
apiVersion: v1
Expand Down
2 changes: 2 additions & 0 deletions config/release/kubemacpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ spec:
image: quay.io/kubevirt/kubemacpool:latest
imagePullPolicy: Always
name: manager
priorityClassName: system-cluster-critical
restartPolicy: Always
terminationGracePeriodSeconds: 5
---
Expand Down Expand Up @@ -365,6 +366,7 @@ spec:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: tls-key-pair
readOnly: true
priorityClassName: system-cluster-critical
restartPolicy: Always
terminationGracePeriodSeconds: 5
volumes:
Expand Down
2 changes: 2 additions & 0 deletions config/test/kubemacpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ spec:
image: registry:5000/kubevirt/kubemacpool:latest
imagePullPolicy: Always
name: manager
priorityClassName: system-cluster-critical
restartPolicy: Always
terminationGracePeriodSeconds: 5
---
Expand Down Expand Up @@ -366,6 +367,7 @@ spec:
- mountPath: /tmp/k8s-webhook-server/serving-certs/
name: tls-key-pair
readOnly: true
priorityClassName: system-cluster-critical
restartPolicy: Always
terminationGracePeriodSeconds: 5
volumes:
Expand Down

0 comments on commit 34127b0

Please sign in to comment.