Basic Namespace Operations
Updated at:2025-10-27
A namespace is a logical grouping of a set of Kubernetes resources and objects. For instance, it can be used to organize system objects into different project teams or user groups. Resources like Pods, Services, Deployments, and StatefulSets all belong to a specific namespace.
Namespace category
According to the different creation methods of namespaces, namespaces can be divided into two categories:
-
Cluster default creation: When creating a Kubernetes cluster, the system automatically creates a series of namespaces
- default: The cluster's default namespace. Any Kubernetes resource created without explicitly specifying a namespace will be deployed in this namespace.
- kube-system: The namespace for resources deployed by the Kubernetes system. Resources deployed through component management are also placed in this namespace.
- kube-public: A namespace accessible to all users (including unauthenticated ones), used for deploying public plugins, container templates, and other shared resources.
- kube-node-lease: A namespace used to store lease information for each node, with nodes regularly updating their lease data. During the lease period, the control plane can detect the node's heartbeat to determine its status.
Create namespace
- Log in to the Baidu AI Cloud management console.
- Navigate to Product Services - Cloud Native - Cloud Container Engine CCE, click Cluster Management - Cluster List, then click the target cluster name to enter the Cluster Details page. In the sidebar, click Namespace and Quota.
- Click Create Namespace, and fill in the namespace name and corresponding tags (optional).
| ConfigMap | Required/Optional | Configuration |
|---|---|---|
| Namespace | Required | Provide a name for the namespace. |
| Tag | Optional | Configure tag information for the namespace. |
- Click OK to complete namespace creation.
Edit namespace
On the Namespace List page, click the Edit button to update the namespace tags.
Delete namespace
On the Namespace List page, select the namespace to be deleted, click Delete, confirm the information, and then click OK to delete the namespace.
Description:
- The default, kube-system and kube-public namespaces do not support deletion.
