Commit 9b35734e authored by Marc Bachmann's avatar Marc Bachmann Committed by Brad Davidson

Add topologySpreadConstraints to support scaling of coredns

parent e24e1332
......@@ -109,6 +109,13 @@ spec:
effect: "NoSchedule"
nodeSelector:
beta.kubernetes.io/os: linux
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
k8s-app: kube-dns
containers:
- name: coredns
image: %{SYSTEM_DEFAULT_REGISTRY}%rancher/mirrored-coredns-coredns:1.8.4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment