Skip to content

Commit

Permalink
modules/bootkube: remove critical pod annotation
Browse files Browse the repository at this point in the history
Remove the critical pod annotation and toleration from the
controller-manager and scheduler, since this can result in dangerous
behavior as discussed in
kubernetes-retired/bootkube#519.
  • Loading branch information
squat committed Oct 2, 2017
1 parent 97e47e6 commit 2e91a95
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions modules/bootkube/resources/manifests/kube-apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ spec:
tectonic-operators.coreos.com/managed-by: kube-version-operator
annotations:
checkpointer.alpha.coreos.com/checkpoint: "true"
scheduler.alpha.kubernetes.io/critical-pod: ""
spec:
containers:
- name: kube-apiserver
Expand Down Expand Up @@ -81,8 +80,6 @@ spec:
readOnly: false
hostNetwork: true
tolerations:
- key: "CriticalAddonsOnly"
operator: "Exists"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ spec:
k8s-app: kube-controller-manager
pod-anti-affinity: kube-controller-manager-${kubernetes_version}
tectonic-operators.coreos.com/managed-by: kube-version-operator
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
spec:
affinity:
podAntiAffinity:
Expand Down Expand Up @@ -74,8 +72,6 @@ spec:
runAsNonRoot: true
runAsUser: 65534
tolerations:
- key: "CriticalAddonsOnly"
operator: "Exists"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
Expand Down
4 changes: 0 additions & 4 deletions modules/bootkube/resources/manifests/kube-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ spec:
tier: node
k8s-app: kube-proxy
tectonic-operators.coreos.com/managed-by: kube-version-operator
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
spec:
containers:
- name: kube-proxy
Expand Down Expand Up @@ -47,8 +45,6 @@ spec:
readOnly: true
hostNetwork: true
tolerations:
- key: "CriticalAddonsOnly"
operator: "Exists"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
Expand Down
4 changes: 0 additions & 4 deletions modules/bootkube/resources/manifests/kube-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ spec:
k8s-app: kube-scheduler
pod-anti-affinity: kube-scheduler-${kubernetes_version}
tectonic-operators.coreos.com/managed-by: kube-version-operator
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
spec:
affinity:
podAntiAffinity:
Expand Down Expand Up @@ -55,8 +53,6 @@ spec:
runAsNonRoot: true
runAsUser: 65534
tolerations:
- key: "CriticalAddonsOnly"
operator: "Exists"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"

0 comments on commit 2e91a95

Please sign in to comment.