diff --git a/pkg/cluster/k8sres.go b/pkg/cluster/k8sres.go index eb4402f03..be4015a7e 100644 --- a/pkg/cluster/k8sres.go +++ b/pkg/cluster/k8sres.go @@ -2212,8 +2212,8 @@ func (c *Cluster) generatePodDisruptionBudget() *policyv1.PodDisruptionBudget { pdbEnabled := c.OpConfig.EnablePodDisruptionBudget pdbMasterLabelSelector := c.OpConfig.PDBMasterLabelSelector - // if PodDisruptionBudget is disabled or if there are no DB pods, set the budget to 0. - if (pdbEnabled != nil && !(*pdbEnabled)) || c.Spec.NumberOfInstances <= 0 { + // if PodDisruptionBudget is disabled or if there are more than one DB pods, set the budget to 0. + if (pdbEnabled != nil && !(*pdbEnabled)) || c.Spec.NumberOfInstances <= 1 { minAvailable = intstr.FromInt(0) }