You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cluster/node-pools/master-default/userdata.yaml
+1-24Lines changed: 1 addition & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,6 @@ write_files:
3
3
- owner: root:root
4
4
path: /etc/kubernetes/secrets.env
5
5
content: |
6
-
{{- if eq .NodePool.ConfigItems.kuberuntu_ami_version "old" }}
7
-
NODEPOOL_TAINTS=node.kubernetes.io/role=master:NoSchedule{{if index .NodePool.ConfigItems "taints"}},{{.NodePool.ConfigItems.taints}}{{end}}
8
-
{{- end }}
9
6
NODE_LABELS=master=true,node.kubernetes.io/exclude-from-external-load-balancers,node.kubernetes.io/distro=ubuntu,cluster-lifecycle-controller.zalan.do/decommission-priority=999,lifecycle-status=ready{{if index .NodePool.ConfigItems "labels"}},{{.NodePool.ConfigItems.labels}}{{end}}
10
7
NODEPOOL_NAME={{ .NodePool.Name }}
11
8
KUBELET_ROLE=master
@@ -78,7 +75,6 @@ write_files:
78
75
# variables are replaced on instance start-up.
79
76
providerID: __PROVIDER_ID__
80
77
clusterDNS: [__CLUSTER_DNS__]
81
-
{{- if eq .NodePool.ConfigItems.kuberuntu_ami_version "new" }}
82
78
registerWithTaints:
83
79
- key: node.kubernetes.io/role
84
80
value: master
@@ -89,7 +85,6 @@ write_files:
89
85
{{- if $taint.Value }}
90
86
value: {{$taint.Value }}
91
87
{{- end }}
92
-
{{- end }}
93
88
{{- end }}
94
89
95
90
- owner: root:root
@@ -938,25 +933,7 @@ write_files:
938
933
{{index $cfg 0}} = {{index $cfg 1}}
939
934
{{- end}}
940
935
{{- end}}
941
-
{{ if eq .NodePool.ConfigItems.kuberuntu_ami_version "old" }}
942
-
# TODO: Remove this once all nodes are running an AMI compatible with /etc/cni/net.d/10-flannel.conflist
0 commit comments