From dda4413b56b87be6ebf01414b5656ed3735ce84d Mon Sep 17 00:00:00 2001 From: Jory Irving <jory@jory.dev> Date: Tue, 6 Feb 2024 13:00:27 -0700 Subject: [PATCH] feat: add topology to dragonfly --- .../apps/database/dragonfly-operator/cluster/cluster.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kubernetes/teyvat/apps/database/dragonfly-operator/cluster/cluster.yaml b/kubernetes/teyvat/apps/database/dragonfly-operator/cluster/cluster.yaml index f3de6f6590..b3a53833d2 100644 --- a/kubernetes/teyvat/apps/database/dragonfly-operator/cluster/cluster.yaml +++ b/kubernetes/teyvat/apps/database/dragonfly-operator/cluster/cluster.yaml @@ -12,3 +12,10 @@ spec: limits: cpu: 600m memory: 750Mi + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: DoNotSchedule + labelSelector: + matchLabels: + app.kubernetes.io/name: dragonfly