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"},
},
Spec: v1.PodSpec{
Containers: []v1.Container{container},
HostNetwork: true,
Volumes: VolumeMapToSlice(volumes),
Containers: []v1.Container{container},
PriorityClassName: "system-cluster-critical",
HostNetwork: true,
Volumes: VolumeMapToSlice(volumes),
},
}
}

View File

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