mirror of https://github.com/k3s-io/k3s
Add topologySpreadConstraints to support scaling of coredns
Signed-off-by: Marc Bachmann <marc.brookman@gmail.com>pull/4153/head
parent
e24e1332fd
commit
9b35734e1a
|
@ -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
Loading…
Reference in New Issue