1
0
Fork 0

feat(postgres): add deploymentStrategy=RollingUpdate and podAntiAffinity to pooler

This commit is contained in:
Vojtěch Mareš 2023-11-17 09:30:42 +01:00
parent aa2ce2a2f9
commit 263170b713
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -14,3 +14,19 @@ spec:
max_client_conn: "300"
default_pool_size: "10"
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