How To Forcefully Remove a Terminating Namespace Stuck Due to Finalizers.

Problem

Environment

  • Platform9 Managed Kubernetes - All Versions

Procedure

Sometimes, when a project has been stuck in "Terminating" state, even if all the resources have been properly removed afterwards, namespace may remain stuck in that state forever, so it becomes necessary to force its removal.

However, a very important warning: forcing the removal of a namespace without having properly cleaned it up may lead to unstable and unpredictable cluster behavior, so you must be 100% sure this is not the case and open a support case if you have even a minimum doubt.

Dump the contents of the namespace in a temporary file called tmp.json

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard