The page has been translated by Gen AI.
Managing Namespaces
A namespace is a logical separation unit within a Kubernetes cluster, used to specify access permissions or resource usage limits per namespace.
Create a namespace
To create a namespace, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click the Namespace menu. 2. Navigate to the Namespace List page.
- On the Namespace List page, select the cluster where you want to create a namespace from the gear button at the top left, then click Create Object.
- Enter the object information in the Object Creation Popup and click the Confirm button.
Reference
For detailed information on object creation, refer to the Kubernetes official documentation > Kubernetes objects.
Check detailed namespace information
On the namespace detail page, you can view the namespace status and detailed information.
To view detailed namespace information, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click the Namespace menu. 2. Navigate to the Namespace List page.
- On the Namespace List page, select the cluster that the namespace requiring detailed information belongs to from the gear button at the top left, then click Confirm.
- On the Namespace List page, select the item you want to view details for and click it. 4. Go to the Namespace Details page.
Category Detailed description Status indicator Display the current state of the namespace Delete Namespace Delete namespace - A namespace containing workloads cannot be deleted. To delete a namespace, you must delete all associated workloads
Detailed Information Check the Account information and metadata of the namespace YAML Namespaces can be edited in the YAML editor - Click the Edit button, modify the namespace, then click the Done button to apply the changes
- When editing content, click the Diff button to view the changes
event Check events that occurred within the namespace Pod Check the pod information in the namespace Account information Check basic information about the Account, such as name, location, and creation timestamp. Metadata Information Check the metadata information of the namespace Table. Namespace detailed information items
Delete namespace
To delete a namespace, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click the Namespace menu. 2. Navigate to the Namespace List page.
- On the Namespace List page, select the cluster that the namespace you want to delete belongs to from the gear button at the top left, then click the Confirm button.
- On the Namespace List page, select the item you want to view details for and click it. 4. Navigate to the Namespace Details page.
- On the Namespace Details page, click Delete Namespace.
- When the notification confirmation window appears, click the Confirm button.
Caution
On the namespace list page, after selecting the item you want to delete, click Delete to remove the selected namespace.
A namespace that contains workloads cannot be deleted. To delete a namespace, delete all associated workloads.