cloudnative-pg / charts

CloudNativePG Helm Charts
Apache License 2.0
175 stars 83 forks source link

Single instance and PDB #233

Closed gitarns closed 6 months ago

gitarns commented 6 months ago

Hello,

When we create a single instance "Cluster", the operator adds a pdb with a minimum pod of one, making the pg pod immune to eviction.

Is there a configuration to disable the creation of the pdb ?

itay-grudev commented 6 months ago

Not as far as I am aware. This is a design feature of the operator to ensure that at least one database pod is always available, including during maintenance windows and node drains.

See: https://cloudnative-pg.io/documentation/current/operator_capability_levels/#maintenance-window-and-poddisruptionbudget-for-kubernetes-nodes