From b813ae1a092b4daf60f18318e5dd407f94b352be Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Tue, 5 Nov 2024 13:49:14 +0300 Subject: [PATCH] infrastructure: cluster1: kube-dns: Specify topologySpreadConstraints. --- infrastructure/cluster1/kube-dns/deployment.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infrastructure/cluster1/kube-dns/deployment.yaml b/infrastructure/cluster1/kube-dns/deployment.yaml index 87a1859d..6b93fddc 100644 --- a/infrastructure/cluster1/kube-dns/deployment.yaml +++ b/infrastructure/cluster1/kube-dns/deployment.yaml @@ -16,3 +16,10 @@ spec: operator: "Equal" value: "true" effect: "NoSchedule" + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + k8s-app: kube-dns