cleanup useless 'scheduler.alpha.kubernetes.io/critical-pod' annotation

This commit is contained in:
SataQiu 2021-05-19 17:46:35 +08:00
parent 1d0e5ac583
commit ff18e391e9
2 changed files with 1 additions and 5 deletions

View File

@ -3,8 +3,6 @@ kind: Pod
metadata: metadata:
name: l7-lb-controller name: l7-lb-controller
namespace: kube-system namespace: kube-system
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
labels: labels:
k8s-app: gcp-lb-controller k8s-app: gcp-lb-controller
kubernetes.io/name: "GLBC" kubernetes.io/name: "GLBC"

View File

@ -68,12 +68,10 @@ var _ = SIGDescribe("[Feature:GPUDevicePlugin] Device Plugin", func() {
}, },
Template: v1.PodTemplateSpec{ Template: v1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
"scheduler.alpha.kubernetes.io/critical-pod": "",
},
Labels: labels, Labels: labels,
}, },
Spec: v1.PodSpec{ Spec: v1.PodSpec{
PriorityClassName: "system-node-critical",
Tolerations: []v1.Toleration{ Tolerations: []v1.Toleration{
{ {
Key: "CriticalAddonsOnly", Key: "CriticalAddonsOnly",