++ 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,11 +19,18 @@ patches:
path: /spec/replicas path: /spec/replicas
value: 3 value: 3
- op: add - op: add
path: /spec/template/spec/topologySpreadConstraints path: /spec/strategy
value: value:
- maxSkew: 1 type: RollingUpdate
topologyKey: topology.kubernetes.io/zone rollingUpdate:
whenUnsatisfiable: DoNotSchedule maxSurge: 0
maxUnavailable: 1
- op: add
path: /spec/template/spec/affinity
value:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: topology.kubernetes.io/zone
labelSelector: labelSelector:
matchLabels: matchLabels:
app: kustomize-controller app: kustomize-controller
@ -35,11 +42,18 @@ patches:
path: /spec/replicas path: /spec/replicas
value: 3 value: 3
- op: add - op: add
path: /spec/template/spec/topologySpreadConstraints path: /spec/strategy
value: value:
- maxSkew: 1 type: RollingUpdate
topologyKey: topology.kubernetes.io/zone rollingUpdate:
whenUnsatisfiable: DoNotSchedule maxSurge: 0
maxUnavailable: 1
- op: add
path: /spec/template/spec/affinity
value:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: topology.kubernetes.io/zone
labelSelector: labelSelector:
matchLabels: matchLabels:
app: helm-controller app: helm-controller