From 7aa26ea23659ef99fc84c9a49a2e7638cbe514d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 13 Aug 2024 14:50:25 +0300 Subject: [PATCH] passmower: Add topologySpreadConstraints --- passmower/dragonfly.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/passmower/dragonfly.yaml b/passmower/dragonfly.yaml index 9c833e7..ce870d6 100644 --- a/passmower/dragonfly.yaml +++ b/passmower/dragonfly.yaml @@ -23,6 +23,14 @@ spec: key: password name: dragonfly-auth replicas: 3 + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: topology.kubernetes.io/zone + whenUnsatisfiable: DoNotSchedule + labelSelector: + matchLabels: + app: dragonfly-ephemeral + app.kubernetes.io/part-of: dragonfly resources: limits: cpu: 600m