++ flux zone antiaffinity
This commit is contained in:
parent
601ac84079
commit
6ba8444272
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user