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
|
||||
# PodTemplateSpec
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pooler
|
||||
spec:
|
||||
containers: [] # suppress error
|
||||
affinity:
|
||||
|
|
@ -28,6 +31,9 @@ spec:
|
|||
- weight: 100
|
||||
podAffinityTerm:
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
postgresql.cnpg.io/cluster: moving-moose
|
||||
matchExpressions:
|
||||
- key: app
|
||||
operator: In
|
||||
values:
|
||||
- pooler
|
||||
topologyKey: topology.kubernetes.io/zone
|
||||
|
|
|
|||
Reference in a new issue