This topic describes how to create a namespace in a Kubernetes cluster.

Background information

In a Kubernetes cluster, you can use namespaces to create multiple virtual clusters. If multiple users share a cluster, you can create namespaces as workspaces to complete different tasks and use resource quotas to allocate resources in the namespaces.


  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.
  4. In the left-side navigation pane, click Namespaces.
  5. On the page that appears, click Create in the upper-right corner.
  6. In the dialog box that appears, configure the parameters.
    Configure parameters for a namespace
    • Name: Enter a namespace name. In this example, the name is test. The name must be 1 to 63 characters in length and can contain only digits, letters, and hyphens (-). The name must start and end with a letter or digit.
    • Label: Add one or more labels to the namespace. You can use labels to identify the attributes of the namespace. In this example, use a key-value pair to identify that the namespace is used in a test environment.

      To add a label, enter a key and a value and click Add in the Actions column.

  7. Click OK.
    Return to the Namespace page. In the list of namespaces, the test namespace appears.