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 Aug 16, 2017
1 parent 4ff6169 commit 91f82f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ spec:
tier: control-plane
k8s-app: kube-controller-manager
pod-anti-affinity: kube-controller-manager-${kubernetes_version}
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
spec:
affinity:
podAntiAffinity:
Expand Down Expand Up @@ -73,8 +71,6 @@ spec:
pod-anti-affinity: kube-controller-manager-${kubernetes_version}
tier: control-plane
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 @@ -18,8 +18,6 @@ spec:
tier: control-plane
k8s-app: kube-scheduler
pod-anti-affinity: kube-scheduler-${kubernetes_version}
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
spec:
affinity:
podAntiAffinity:
Expand Down Expand Up @@ -54,8 +52,6 @@ spec:
pod-anti-affinity: kube-scheduler-${kubernetes_version}
tier: control-plane
tolerations:
- key: "CriticalAddonsOnly"
operator: "Exists"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"

0 comments on commit 91f82f1

Please sign in to comment.