1. The purpose of this post
Sometimes, when you delete a resource like namespace in kubernetes, you would find that the resource can not be deleted, it’s stuck in terminating state.
- docker 19
- kubernetes 1.17
3. The solution
There must be some resource that is stuck and still reference the namespace, so , check them out:
Replace the_namespace with the real namespace name.
And then delete the resources like this:
And finally delete the namespace:
Now everything works fine.