kubeblocks
kubeblocks copied to clipboard
[Features] Support Pause and Resume Reconcilation of a Cluster
kubectl rollout pause --help
Mark the provided resource as paused.
Paused resources will not be reconciled by a controller. Use "kubectl rollout resume" to resume a paused resource.
Currently only deployments support being paused.
kubectl supports pause and resume reconcliation of a resource. But only for deployment. In KubeBlocks, we can support pause/resume recocliation of a Cluster (and resources owned by cluster, such as component, config controller) We can mark a Cluster as paused by adding an annotation, or update a field, etc.
In KB we have a const for such purpose but it seems it is never used:
// annotation keys
ControllerPaused = "controller.kubeblocks.io/controller-paused"