How To Delete Kubernetes NameSpaces
- To delete Kubernetes namespaces, you can use the kubectl command-line tool, which is the official Kubernetes command-line client. Here’s the general syntax for deleting a namespace with kubectl delete command:
kubectl delete namespace <namespace-name>
Step 1: Give a list of every namespace in the cluster of Kubernetes. Then choose the namespace that needs to be removed.
Step 2: To remove that namespece, which is displayed in the image below, use the command already given.
- As you can see in the screenshot above, we have removed the name space gfg-test and listed every namespace.
kubectl delete namespace gfg-test
How To Delete Namespace In Kubernetes?
Kubernetes container orchestration tool that helps in managing the containerized application in pods and provides additional features such as security, storage, and network. Kubernetes comes with a service known as a namespace that helps in working and managing of resources. In this article we are going to discuss on how to delete the namespaces in Kuberenetes.
Contact Us