casskop
casskop copied to clipboard
Removal of namespace hangs on terminating
When removing a namespace with CassKop and a running cluster in it without prior warning, K8S cannot complete the task. The namespace hangs on Terminating This happened on one of our internal clusters
The issue may come from the finalizer of the CRD (thanks @allamand)
As @fdehay indicates, this does seem to be a finalizer when deleting the CRD at the same time as the namespace. This issue best describes it https://github.com/kubernetes/kubernetes/issues/60538. In my case, I found it helps to wait before deleting the namespace:
kubectl -n <namespace> wait --for=delete --timeout=600s <resource-name>
Any updates here?
I usually follow the steps in this link to forcefully delete the namespace when it is stuck at terminating state. Hope this is useful.