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.
This commit is contained in:
Lubomir I. Ivanov 2020-04-10 23:05:33 +03:00
parent 1c01efe10f
commit 83a59c02f9
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ func ComponentPod(container v1.Container, volumes map[string]v1.Volume, annotati
}, },
Spec: v1.PodSpec{ Spec: v1.PodSpec{
Containers: []v1.Container{container}, Containers: []v1.Container{container},
PriorityClassName: "system-cluster-critical", PriorityClassName: "system-node-critical",
HostNetwork: true, HostNetwork: true,
Volumes: VolumeMapToSlice(volumes), Volumes: VolumeMapToSlice(volumes),
}, },

View File

@ -415,7 +415,7 @@ func TestComponentPod(t *testing.T) {
Name: "foo", Name: "foo",
}, },
}, },
PriorityClassName: "system-cluster-critical", PriorityClassName: "system-node-critical",
HostNetwork: true, HostNetwork: true,
Volumes: []v1.Volume{}, Volumes: []v1.Volume{},
}, },