feat(postgres): add deploymentStrategy=RollingUpdate and podAntiAffinity to pooler
This commit is contained in:
parent
aa2ce2a2f9
commit
263170b713
1 changed files with 16 additions and 0 deletions
|
|
@ -14,3 +14,19 @@ spec:
|
||||||
max_client_conn: "300"
|
max_client_conn: "300"
|
||||||
default_pool_size: "10"
|
default_pool_size: "10"
|
||||||
ignore_startup_parameters: "search_path"
|
ignore_startup_parameters: "search_path"
|
||||||
|
deploymentStrategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 1
|
||||||
|
# PodTemplateSpec
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
postgresql.cnpg.io/cluster: moving-moose
|
||||||
|
topologyKey: topology.kubernetes.io/zone
|
||||||
|
|
|
||||||
Reference in a new issue