kubeadm: set priority class name to system-cluster-critical for all master components

Remove the deprecated `scheduler.alpha.kubernetes.io/critical-pod` pod annotation and use
the `priorityClassName` first class attribute instead, setting all master components to
`system-cluster-critical`.
This commit is contained in:
Rafael Fernández López
2019-02-08 18:27:11 +01:00
parent 64ce2e598f
commit 30dc43ff86
9 changed files with 86 additions and 17 deletions

View File

@@ -254,10 +254,9 @@ func TestComponentPod(t *testing.T) {
Kind: "Pod",
},
ObjectMeta: metav1.ObjectMeta{
Name: "foo",
Namespace: "kube-system",
Annotations: map[string]string{"scheduler.alpha.kubernetes.io/critical-pod": ""},
Labels: map[string]string{"component": "foo", "tier": "control-plane"},
Name: "foo",
Namespace: "kube-system",
Labels: map[string]string{"component": "foo", "tier": "control-plane"},
},
Spec: v1.PodSpec{
Containers: []v1.Container{