We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1681a4 commit b6bcf4bCopy full SHA for b6bcf4b
upup/models/cloudup/resources/addons/coredns.addons.k8s.io/k8s-1.12.yaml.template
@@ -145,6 +145,9 @@ spec:
145
{{ ToYAML .KubeDNS.Affinity | indent 8 }}
146
{{- end }}
147
topologySpreadConstraints:
148
+ {{- if .KubeDNS.TopologySpreadConstraints }}
149
+{{ ToYAML .KubeDNS.TopologySpreadConstraints | indent 6 }}
150
+ {{- else }}
151
- maxSkew: 1
152
topologyKey: "topology.kubernetes.io/zone"
153
whenUnsatisfiable: ScheduleAnyway
@@ -158,6 +161,7 @@ spec:
158
161
labelSelector:
159
162
matchLabels:
160
163
k8s-app: kube-dns
164
+ {{- end }}
165
containers:
166
- name: coredns
167
image: {{ if KubeDNS.CoreDNSImage }}{{ KubeDNS.CoreDNSImage }}{{ else }}registry.k8s.io/coredns/coredns:v1.11.3{{ end }}
0 commit comments