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
, navigate to the folder dashboard and select Managed Service for Kubernetes. -
Click the cluster name and select
Namespaces in the left-hand panel. -
In the top-right corner, click Create.
-
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
, navigate to the folder dashboard and select Managed Service for Kubernetes. - Click the cluster name and select
Namespaces in the left-hand panel. - In the namespace row, click
and select Delete. - Confirm the action.