diff --git a/kubernetes/main/apps/network/cloudflared/app/helmrelease.yaml b/kubernetes/main/apps/network/cloudflared/app/helmrelease.yaml index ade8d52e..f983ea86 100644 --- a/kubernetes/main/apps/network/cloudflared/app/helmrelease.yaml +++ b/kubernetes/main/apps/network/cloudflared/app/helmrelease.yaml @@ -2,7 +2,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta2 kind: HelmRelease metadata: - name: cloudflared + name: &app cloudflared spec: interval: 30m chart: @@ -78,6 +78,13 @@ spec: runAsUser: 65534 runAsGroup: 65534 seccompProfile: { type: RuntimeDefault } + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: DoNotSchedule + labelSelector: + matchLabels: + app.kubernetes.io/name: *app service: app: controller: cloudflared