From 83a59c02f9b6fa29a352043509fca076c05bdb0e Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 10 Apr 2020 23:05:33 +0300 Subject: [PATCH] kubeadm: switch control-plane static Pods to "system-node-critical" Use the priority class "system-node-critical" to ensure the control-plane static Pods have the highest possible priority. --- cmd/kubeadm/app/util/staticpod/utils.go | 2 +- cmd/kubeadm/app/util/staticpod/utils_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kubeadm/app/util/staticpod/utils.go b/cmd/kubeadm/app/util/staticpod/utils.go index d511a718eef..f55893993c9 100644 --- a/cmd/kubeadm/app/util/staticpod/utils.go +++ b/cmd/kubeadm/app/util/staticpod/utils.go @@ -62,7 +62,7 @@ func ComponentPod(container v1.Container, volumes map[string]v1.Volume, annotati }, Spec: v1.PodSpec{ Containers: []v1.Container{container}, - PriorityClassName: "system-cluster-critical", + PriorityClassName: "system-node-critical", HostNetwork: true, Volumes: VolumeMapToSlice(volumes), }, diff --git a/cmd/kubeadm/app/util/staticpod/utils_test.go b/cmd/kubeadm/app/util/staticpod/utils_test.go index 2a29a5c565c..4071df9a126 100644 --- a/cmd/kubeadm/app/util/staticpod/utils_test.go +++ b/cmd/kubeadm/app/util/staticpod/utils_test.go @@ -415,7 +415,7 @@ func TestComponentPod(t *testing.T) { Name: "foo", }, }, - PriorityClassName: "system-cluster-critical", + PriorityClassName: "system-node-critical", HostNetwork: true, Volumes: []v1.Volume{}, },