Add 'system-cluster-critical" to kubeadm control plane pods.
This commit is contained in:
@@ -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),
|
||||||
},
|
},
|
||||||
|
@@ -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{},
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user