Managing namespaces
Kubernetes namespaces allow you to share cluster resources between multiple teams or projects. With the management console, you can create and delete namespaces in Managed Service for Kubernetes without using kubectl.
Creating a namespace
You can create namespaces in the management console in the same way as when using the kubectl create namespace <namespace_name> command.
-
In the management console
, select the folder. -
Navigate
to Managed Service for Kubernetes. -
Select the Managed Service for Kubernetes cluster.
-
Click the Other
tab and select Namespaces. -
Click Create namespace.
-
In the window that opens, enter Name for the namespace.
Note
We do not recommend using the
kube-prefix since it is reserved for system namespaces. -
Click Add.
Deleting a namespace
Deleting a namespace is equivalent to running the kubectl delete namespace <namespace_name> command. Deleting a namespace will also delete all its resources.
To delete a namespace:
- In the management console
, select the folder. - Navigate
to Managed Service for Kubernetes. - Select the Managed Service for Kubernetes cluster.
- Click the Other
tab and select Namespaces. - In the namespace row, click
and select Delete. - In the window that opens, confirm the operation.