Add 'system-cluster-critical" to kubeadm control plane pods.

This commit is contained in:
Timothy St. Clair 2018-05-10 13:58:12 -05:00
parent a64e692133
commit 465094f32b
2 changed files with 7 additions and 5 deletions

View File

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

View File

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