Add new topologySpreadConstraints to coredns

Prefer scaling across zones if multiple zones are available.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Zero King
2025-06-06 04:02:17 +08:00
committed by Brad Davidson
parent 7c45e54f6e
commit f3671646f7
2 changed files with 7 additions and 1 deletions

View File

@@ -118,6 +118,12 @@ spec:
labelSelector:
matchLabels:
k8s-app: kube-dns
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
k8s-app: kube-dns
containers:
- name: coredns
image: "%{SYSTEM_DEFAULT_REGISTRY}%rancher/mirrored-coredns-coredns:1.12.1"

File diff suppressed because one or more lines are too long