<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Namespace_stuck_in_termination</id>
	<title>Namespace stuck in termination - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Namespace_stuck_in_termination"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Namespace_stuck_in_termination&amp;action=history"/>
	<updated>2026-06-01T23:50:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Namespace_stuck_in_termination&amp;diff=2570&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;``` for ns in $(kubectl get ns --field-selector status.phase=Terminating -o jsonpath='{.items[*].metadata.name}'); do  kubectl get ns $ns -ojson | jq '.spec.finalizers = []' |...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Namespace_stuck_in_termination&amp;diff=2570&amp;oldid=prev"/>
		<updated>2021-12-22T23:41:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;``` for ns in $(kubectl get ns --field-selector status.phase=Terminating -o jsonpath=&amp;#039;{.items[*].metadata.name}&amp;#039;); do  kubectl get ns $ns -ojson | jq &amp;#039;.spec.finalizers = []&amp;#039; |...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;```&lt;br /&gt;
for ns in $(kubectl get ns --field-selector status.phase=Terminating -o jsonpath='{.items[*].metadata.name}'); do  kubectl get ns $ns -ojson | jq '.spec.finalizers = []' | kubectl replace --raw &amp;quot;/api/v1/namespaces/$ns/finalize&amp;quot; -f -; done&lt;br /&gt;
&lt;br /&gt;
for ns in $(kubectl get ns --field-selector status.phase=Terminating -o jsonpath='{.items[*].metadata.name}'); do  kubectl get ns $ns -ojson | jq '.metadata.finalizers = []' | kubectl replace --raw &amp;quot;/api/v1/namespaces/$ns/finalize&amp;quot; -f -; done&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
As editing namespace finalizers doesn't work sometimes.&lt;br /&gt;
&lt;br /&gt;
kubectl edit namespace my-namespace # look for finalizer list&lt;br /&gt;
&lt;br /&gt;
https://stackoverflow.com/questions/65667846/namespace-stuck-as-terminating&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>