Add topologySpreadConstraints to support scaling of coredns

Signed-off-by: Marc Bachmann <marc.brookman@gmail.com>
This commit is contained in:
Marc Bachmann 2021-10-02 04:00:46 +02:00 committed by Brad Davidson
parent e24e1332fd
commit 9b35734e1a
2 changed files with 8 additions and 1 deletions

View File

@ -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

File diff suppressed because one or more lines are too long