-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
postgres-operator version: registry.opensource.zalan.do/acid/postgres-operator:v1.7.0
Introduced in #1464: When using
pod_antiaffinity_topology_key: "kubernetes.io/hostname"
,- PostgreSQL cluster with
spec.connectionPooler.numberOfInstances: 3
, - K8s cluster with 3 nodes,
the pooler Deployment cannot be updated. The update strategy is RollingUpdate
and it attempts to create a fourth instance before terminating any instance. However, the fourth instance cannot be scheduled due to the antiaffinity.
Possible solution
I see two possible solutions, but maybe there are also other solutions:
- Add an option to configure the pooler Deployment's
spec.strategy.rollingUpdate.maxUnavailable
setting. - Use
preferredDuringSchedulingIgnoredDuringExecution
instead ofrequiredDuringSchedulingIgnoredDuringExecution:
for poolers.
Metadata
Metadata
Assignees
Labels
No labels