dragonflydb / dragonfly-operator

A Kubernetes operator to install and manage Dragonfly instances.
https://www.dragonflydb.io/docs/managing-dragonfly/operator/installation
Apache License 2.0
116 stars 23 forks source link

Add pdb configuration #181

Open nirroz93 opened 1 month ago

nirroz93 commented 1 month ago

add option in the configuration to create podDisruptionBudget, so master and replica won't be down at the same time. Maybe even set default when there is a replica

cmergenthaler commented 2 weeks ago

I think it would be nice if the PDB is dynamically changed by the operator, so that a disruption of the master is only allowed if there is at least 1 replica in full sync with the master. Otherwise it could happen that the master is evicted too early by k8s and the cache is gone.