Closed brianjester closed 2 months ago
Related page: https://kubernetes.io/docs/tutorials/stateful-application/cassandra/#cleaning-up /language en
I think we can improve the advice, or change the grace period to be quite a bit shorter. Not sure which is better.
/triage accepted either way
/retitle [Unclear] example: Deploying Cassandra with a StatefulSet
change the grace period to be quite a bit shorter
I have tried to reproduce the issue with a grace period of 300 seconds. And I observed that all my related resources were deleted in under 10 seconds.
It will be better if we reduce the terminationGracePeriodSeconds: 1800
to some shorter value like 300
or 500
.
I would like to work on this issue.
/assign /sig apps /sig storage
/assign
When running this command:
The grace period it was going to sleep was 1800s (30m), so after all resources were deleted (about 5-6s), I hit Ctrl-C, then manually ran the line after the sleep:
kubectl delete persistentvolumeclaim -l app=cassandra
Recommend adding a note to avoid having the student wait 30m for a command to finish that might only take a few seconds.