From 938263c0dac8a36b0320344372709bcbb2bafc7f Mon Sep 17 00:00:00 2001 From: Or Shoval Date: Wed, 16 Jun 2021 13:11:16 +0300 Subject: [PATCH] Control plane, Assign Priority class to pods 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 --- deploy/handler/operator.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/handler/operator.yaml b/deploy/handler/operator.yaml index 49d03f0a8..cf034276a 100644 --- a/deploy/handler/operator.yaml +++ b/deploy/handler/operator.yaml @@ -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: @@ -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: @@ -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: