Skip to content

Commit 02622b0

Browse files
committed
Run critical addons on the control plane
1 parent fecdf18 commit 02622b0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

upup/models/cloudup/resources/addons/aws-ebs-csi-driver.addons.k8s.io/k8s-1.17.yaml.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,12 @@ spec:
726726
- effect: NoExecute
727727
operator: Exists
728728
tolerationSeconds: 300
729+
{{- if IsControlPlaneMode }}
730+
- key: node-role.kubernetes.io/master
731+
operator: Exists
732+
- key: node-role.kubernetes.io/control-plane
733+
operator: Exists
734+
{{- end }}
729735
{{ end }}
730736
securityContext:
731737
fsGroup: 1000

upup/models/cloudup/resources/addons/coredns.addons.k8s.io/k8s-1.12.yaml.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ spec:
361361
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"preventSinglePointFailure":true}}
362362
- --logtostderr=true
363363
- --v=2
364+
{{- if not IsControlPlaneMode }}
364365
priorityClassName: system-cluster-critical
366+
{{- end }}
365367
tolerations:
366368
{{- if KubeDNS.Tolerations }}
367369
{{ ToYAML .KubeDNS.Tolerations | indent 8 }}

0 commit comments

Comments
 (0)