Manage namespaces

Namespaces provide a method to isolate resources between users in a cluster. Namespaces are isolated from one another, which means two namespaces cannot communicate with each other. If you specify a namespace in the application affinity parameters for application deployment, the application will be deployed to nodes in that namespace.

Namespaces management contains the following tasks:

Create a namespace

  1. On the top navigation bar, click Cloud Services, and then select Cloud Container Engine from the Container Service menu.

  1. From the left navigation pane, select Clusters.

  1. Click the name of a cluster.

  1. Click the Namespaces tab.

  1. Click Create Namespace.

  1. Enter the name and description, and then click OK.

Update the description of a namespace

  1. On the top navigation bar, click Cloud Services, and then select Cloud Container Engine from the Container Service menu.

  1. From the left navigation pane, select Clusters.

  1. Click the name of a cluster.

  1. Click the Namespaces tab.

  1. Click Update in the Actions column for a namespace.

  1. Edit the namespace description, and then click OK.

Delete a namespace

Deleting a namespace will also delete its configurations, including PVCs, ConfigMaps, and secrets. Those configurations cannot be restored after deletion. Make sure you are fully aware of the impact of namespace deletion.

 

  1. On the top navigation bar, click Cloud Services, and then select Cloud Container Engine from the Container Service menu.

  1. From the left navigation pane, select Clusters.

  1. Click the name of a cluster.

  1. Click the Namespaces tab.

  1. Click Delete in the Actions column for a namespace.

  1. In the dialog box that opens, click OK.