Delete Namespace Stuck At Terminating State

1 · Naser Mirzaei · Jan. 27, 2019, midnight
Problem Sometimes after deleting a namespace (for example foo), it sticks on “Terminating” state, and when you enter: kubectl delete namespace foo You get: Error from server (Conflict): Operation cannot be fulfilled on namespaces "foo": The system is ensuring all content is removed from this namespace. Upon completion, this namespace will automatically be purged by the system. Solution Let’s get rid of foo namespace! Run this command: kubectl get namespace foo -o json > tmp.json Open tmp.jso...