Restart Statefulset
workload
Related link
Notice
- Do not removing
statefulset
workload, it will scale down to 0 and not bring up anymore. Instead of just removing pods, It will help the pods restart base onstatefulset
strategy - Rollout
statefulset
is not work when status ofstatefulset
iscompleted
- Deleting pods in
statefulset
will not remove associated volume
Note
Deleting the PVC after the pods have terminated might trigger deletion of the backing Persistent Volumes depending on the storage class and reclaim policy. You should never assume ability to access a volume after claim deletion.
Note: Use caution when deleting a PVC, as it may lead to data loss.
- Complete deletion of a
StatefulSet
To delete everything in a StatefulSet
, including the associated pods, you can run a series of commands similar to the following*
Force Delete StatefulSet
Pods
Related link