refactor(pooler): use different label for podAntiAffinity
This commit is contained in:
parent
6c45691240
commit
7bcd56e8d0
1 changed files with 8 additions and 2 deletions
|
|
@ -20,6 +20,9 @@ spec:
|
||||||
maxUnavailable: 1
|
maxUnavailable: 1
|
||||||
# PodTemplateSpec
|
# PodTemplateSpec
|
||||||
template:
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: pooler
|
||||||
spec:
|
spec:
|
||||||
containers: [] # suppress error
|
containers: [] # suppress error
|
||||||
affinity:
|
affinity:
|
||||||
|
|
@ -28,6 +31,9 @@ spec:
|
||||||
- weight: 100
|
- weight: 100
|
||||||
podAffinityTerm:
|
podAffinityTerm:
|
||||||
labelSelector:
|
labelSelector:
|
||||||
matchLabels:
|
matchExpressions:
|
||||||
postgresql.cnpg.io/cluster: moving-moose
|
- key: app
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- pooler
|
||||||
topologyKey: topology.kubernetes.io/zone
|
topologyKey: topology.kubernetes.io/zone
|
||||||
|
|
|
||||||
Reference in a new issue