Skip to content

Commit

Permalink
Control plane, Assign Priority class to pods (#777)
Browse files Browse the repository at this point in the history
Add system-node-critical to nmstate-handler,
since this pod should run on each node,

Add system-cluster-critical to nmstate-webhook
and to nmstate-cert-manager pods,
since those pods aren't bound to a specific node,
yet those are important control plane pods.

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 17, 2021
1 parent 29432b9 commit ffef75b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/handler/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
nodeSelector: {{ toYaml .WebhookNodeSelector | nindent 8 }}
tolerations: {{ toYaml .WebhookTolerations | nindent 8 }}
affinity: {{ toYaml .WebhookAffinity | nindent 8 }}
priorityClassName: system-cluster-critical
containers:
- name: nmstate-webhook
args:
Expand Down Expand Up @@ -107,6 +108,7 @@ spec:
nodeSelector: {{ toYaml .WebhookNodeSelector | nindent 8 }}
tolerations: {{ toYaml .WebhookTolerations | nindent 8 }}
affinity: {{ toYaml .WebhookAffinity | nindent 8 }}
priorityClassName: system-cluster-critical
containers:
- name: nmstate-cert-manager
args:
Expand Down Expand Up @@ -192,6 +194,7 @@ spec:
nodeSelector: {{ toYaml .HandlerNodeSelector | nindent 8 }}
tolerations: {{ toYaml .HandlerTolerations | nindent 8 }}
affinity: {{ toYaml .HandlerAffinity | nindent 8 }}
priorityClassName: system-node-critical
containers:
- name: nmstate-handler
args:
Expand Down

0 comments on commit ffef75b

Please sign in to comment.