Deleting a namespace is just a line of command, but when it is stuck in a Terminating state it starts to give you a headache. In this small tutorial, we would go on to how to delete a namespace that’s stuck.
What’s is a stuck Namespace?
Whenever you find your Namespace getting stuck to a terminating state for long periods of time with kubectl delete namespace name_of_namespace, we call that a stuck namespace.
Delete Namespace stuck in Terminating State
The straightforward way is to use the following command on the terminal and replace the terminating-namespace with the Namespace you want to delete. For this post, we’re targeting abcdsandbox.
This approach supports a wide range of kubectl versions.
The only drawback of this approach is this it doesn’t work on a namespace with Active Status. kubectl delete namespace name_of_namespace works well, and there won’t be a need for using this powerful command for that.
Thanks for reading this post! Feel free to share it with your friends/colleagues if this was of any help!
Read more from us:
Helm: Why DevOps Engineers Love it?
Kubernetes doesn’t have reproducibility built-in. At least, that’s what we hear most people complain as a cloud native consultation firm serving both startups and enterprises. I have been using Kubernetes for a while now, and it stands up to the mark of being a gold standard container orchestration tool. Sharing is caring, so I wrote […]
Life, DevOps and Goals: A Guide on why Goal setting fails and Systems don’t
“Set goals and you’re set for success.” These might be the exact words that you would hear across the internet from the millionaire gurus while you procrastinate thinking of your goals. You might even have a diary that has your goals listed and defined. But what’s lacking? Why aren’t you able to complete your life […]
k8s vs k3s: The Comprehensive Difference
Kubernetes is undoubtedly a champion in the container orchestration world. But currently, we see that K3s or a lightweight Kubernetes distribution which is light, efficient and fast with a drastically small footprint levelling up. Businesses nowadays scratch their head what to use K3s or K8s in their production. So, let’s discuss some of the many […]
Subscribe to the newsletter
Join 100+ cloud native ethusiasts
Join the community Slack
Discuss all things Kubernetes, DevOps and Cloud Native
When administering your Kubernetes cluster, you will likely run into a situation where you need to delete pods from one of your ReplicaSet. You may need to debug issues with the ReplicaSet itself, or other reasons.
Portainer is one of the most popular and trusted GUI for managing Docker, Swarms, ACIs and Kubernetes. The company boasts on its’ website for having 500K users, and there’s no doubt to the number looking at how easy it makes managing the tools. This post goes on the...
Docker is an open-source tool that makes managing application processes in containers much easier. Containers allow you to run your programmes in separate processes with their own resources. Containers are comparable to virtual machines, except they're more portable,...