Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Removal of namespace hangs on terminating #159

Open
fdehay opened this issue Dec 20, 2019 · 4 comments
Open

Removal of namespace hangs on terminating #159

fdehay opened this issue Dec 20, 2019 · 4 comments

Comments

@fdehay
Copy link
Member

fdehay commented Dec 20, 2019

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

@fdehay
Copy link
Member Author

fdehay commented Dec 20, 2019

The issue may come from the finalizer of the CRD (thanks @allamand)

@scott-kausler
Copy link

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 kubernetes/kubernetes#60538. In my case, I found it helps to wait before deleting the namespace:
kubectl -n <namespace> wait --for=delete --timeout=600s <resource-name>

@ajoskowski
Copy link
Contributor

Any updates here?

@SuhailRahman
Copy link

SuhailRahman commented Mar 12, 2021

I usually follow the steps in this link to forcefully delete the namespace when it is stuck at terminating state. Hope this is useful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants