++ flux zone antiaffinity
This commit is contained in:
parent
601ac84079
commit
6ba8444272
@ -19,14 +19,21 @@ 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
|
||||||
labelSelector:
|
maxUnavailable: 1
|
||||||
matchLabels:
|
- op: add
|
||||||
app: kustomize-controller
|
path: /spec/template/spec/affinity
|
||||||
|
value:
|
||||||
|
podAntiAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- topologyKey: topology.kubernetes.io/zone
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: kustomize-controller
|
||||||
- target:
|
- target:
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: helm-controller
|
name: helm-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
|
||||||
labelSelector:
|
maxUnavailable: 1
|
||||||
matchLabels:
|
- op: add
|
||||||
app: helm-controller
|
path: /spec/template/spec/affinity
|
||||||
|
value:
|
||||||
|
podAntiAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- topologyKey: topology.kubernetes.io/zone
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: helm-controller
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user