Tip for Forcibly Deleting a Namespace Stuck in Terminating

⚠️ This article was automatically translated by OpenAI (gpt-4o). It may be edited eventually, but please be aware that it may contain incorrect information at this time.

memo

export NS=hogehoge && echo '{"metadata":{"name":"'$NS'"},"spec":{"finalizers":[]}}' | kubectl replace --raw "/api/v1/namespaces/$NS/finalize" -f -