++ flux zone antiaffinity

This commit is contained in:
Kochetkov S 2026-10-14 12:03:29 +03:00
parent 601ac84079
commit 6ba8444272

View File

@ -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