Skip to content

Commit

Permalink
Control plane, Assign Priority class to pods (#780)
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 <oshoval@redhat.com>
  • Loading branch information
oshoval committed Jun 24, 2021
1 parent 27eef45 commit f2ce9b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/handler/operator.yaml
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 @@ -176,6 +178,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 f2ce9b7

Please sign in to comment.