From e7a06a8e91b052497fe2da7e9b1f12f6f067d162 Mon Sep 17 00:00:00 2001 From: Or Shoval Date: Wed, 16 Jun 2021 13:55:28 +0300 Subject: [PATCH] DaemonSet, Add Priority class Add system-node-critical to macvtap-cni DaemonSet. Since macvtap-cni pod should run on each node, assign system-node-critical pc to it. This will make the control plane less sensitive to preemption than user workloads. Signed-off-by: Or Shoval --- manifests/macvtap.yaml | 1 + templates/macvtap.yaml.in | 1 + 2 files changed, 2 insertions(+) diff --git a/manifests/macvtap.yaml b/manifests/macvtap.yaml index 2db5409d..c9df8388 100644 --- a/manifests/macvtap.yaml +++ b/manifests/macvtap.yaml @@ -14,6 +14,7 @@ spec: spec: hostNetwork: true hostPID: true + priorityClassName: system-node-critical containers: - name: macvtap-cni command: ["/macvtap-deviceplugin", "-v", "3", "-logtostderr"] diff --git a/templates/macvtap.yaml.in b/templates/macvtap.yaml.in index 0b0734a3..e2a9446c 100644 --- a/templates/macvtap.yaml.in +++ b/templates/macvtap.yaml.in @@ -14,6 +14,7 @@ spec: spec: hostNetwork: true hostPID: true + priorityClassName: system-node-critical containers: - name: macvtap-cni command: ["/macvtap-deviceplugin", "-v", "3", "-logtostderr"]