![]() |
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. What Is Kubernetes NameSpace?Within a Kubernetes cluster, a Namespace can be compared to a virtual cluster. In a single Kubernetes cluster, there can be several namespaces that are conceptually segregated from one another. They can support you and your groups in terms of performance, security, and organization. In every cluster, the default, kube-system, and kube-public namespaces are always the first three to be formed. Although it is technically possible to deploy under these namespaces, we advise against using them for your applications and instead saving them for system configuration.
How To List All The NameSpaces In Kubernetes
kubectl get namespaces
How To Create Kubernetes NameSpaces
1. Imperative way Step 1: Imperative Way Of Creating Namespaces
kubectl create namespace <nameSpaceName>
Note: For the name, use small letters Method 2: Using Declarative Manifest File
apiVersion: v1 How To Delete Kubernetes NameSpaces
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.
kubectl delete namespace gfg-test
Kubernetes Namespace – FAQ’sWhat Is The Difference Between Kubernetes Cluster And Namespaces?
How Many Namespaces Can Kubernetes Have?
Can I Use Two Namespaces?
|
Reffered: https://www.geeksforgeeks.org
Dev Scripter |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |