diff --git a/clusters/vk-infra/flux-system/kustomization.yaml b/clusters/vk-infra/flux-system/kustomization.yaml index 26b04b6..0a868f2 100644 --- a/clusters/vk-infra/flux-system/kustomization.yaml +++ b/clusters/vk-infra/flux-system/kustomization.yaml @@ -19,14 +19,21 @@ patches: path: /spec/replicas value: 3 - op: add - path: /spec/template/spec/topologySpreadConstraints + path: /spec/strategy value: - - maxSkew: 1 - topologyKey: topology.kubernetes.io/zone - whenUnsatisfiable: DoNotSchedule - labelSelector: - matchLabels: - app: kustomize-controller + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + - op: add + path: /spec/template/spec/affinity + value: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - topologyKey: topology.kubernetes.io/zone + labelSelector: + matchLabels: + app: kustomize-controller - target: kind: Deployment name: helm-controller @@ -35,11 +42,18 @@ patches: path: /spec/replicas value: 3 - op: add - path: /spec/template/spec/topologySpreadConstraints + path: /spec/strategy value: - - maxSkew: 1 - topologyKey: topology.kubernetes.io/zone - whenUnsatisfiable: DoNotSchedule - labelSelector: - matchLabels: - app: helm-controller + type: RollingUpdate + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + - op: add + path: /spec/template/spec/affinity + value: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - topologyKey: topology.kubernetes.io/zone + labelSelector: + matchLabels: + app: helm-controller