Commit 1ad08a7 Thiago Luiz Pereira Nunes
authored and Thiago Luiz Pereira Nunes
committed
1 parent d1681a4 commit 1ad08a7 Copy full SHA for 1ad08a7
File tree 1 file changed +4
-0
lines changed
upup/models/cloudup/resources/addons/coredns.addons.k8s.io
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,9 @@ spec:
145
145
{{ ToYAML .KubeDNS.Affinity | indent 8 }}
146
146
{{- end }}
147
147
topologySpreadConstraints:
148
+ {{- if .KubeDNS.TopologySpreadConstraints }}
149
+ {{ ToYAML .KubeDNS.TopologySpreadConstraints | indent 6 }}
150
+ {{- else }}
148
151
- maxSkew: 1
149
152
topologyKey: "topology.kubernetes.io/zone"
150
153
whenUnsatisfiable: ScheduleAnyway
@@ -158,6 +161,7 @@ spec:
158
161
labelSelector:
159
162
matchLabels:
160
163
k8s-app: kube-dns
164
+ {{- end }}
161
165
containers:
162
166
- name: coredns
163
167
image: {{ if KubeDNS.CoreDNSImage }}{{ KubeDNS.CoreDNSImage }}{{ else }}registry.k8s.io/coredns/coredns:v1.11.3{{ end }}
You can’t perform that action at this time.
0 commit comments