Scale down StatefulSet to 0 before deleting to terminate pods gracefully #843
Labels
area/robustness
Robustness, reliability, resilience related
kind/enhancement
Enhancement, improvement, extension
priority/4
Priority (lower number equals higher priority)
How to categorize this issue?
/area robustness
/kind enhancement
What would you like to be added:
Upon deletion of an
Etcd
, the current deletion flow forStatefulSet
attempts to delete it directly as follows :etcd-druid/internal/component/statefulset/statefulset.go
Lines 157 to 160 in c73cbf9
However, as per the Kubernetes statefulset limitations, it says
In order to avoid the scenario of orphaned pods and to finish the deletion of statefulset gracefully, it would be better if
sts
is scaled-down before deleting it.Why is this needed:
The text was updated successfully, but these errors were encountered: