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

@ -64,9 +64,10 @@ func ComponentPod(container v1.Container, volumes map[string]v1.Volume) v1.Pod {
Labels: map[string]string{"component": container.Name, "tier": "control-plane"}, Labels: map[string]string{"component": container.Name, "tier": "control-plane"},
}, },
Spec: v1.PodSpec{ Spec: v1.PodSpec{
Containers: []v1.Container{container}, Containers: []v1.Container{container},
HostNetwork: true, PriorityClassName: "system-cluster-critical",
Volumes: VolumeMapToSlice(volumes), HostNetwork: true,
Volumes: VolumeMapToSlice(volumes),
}, },
} }
} }

View File

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