Create Namespace

Within the cluster associated with the project, create a new namespace aligned with the project's available resource quotas.

The new namespace operates within the resource quotas allocated to the project (e.g., CPU, memory), and all resources in the namespace must reside within the associated cluster.

Procedure via web console

  1. In the Project Management view, click on the Project Name for which you want to create a namespace.

  2. In the left navigation bar, click on Namespaces > Namespaces.

  3. Click on Create Namespace.

  4. Configure Basic Information.

    ParameterDescription
    ClusterSelect the cluster linked to the project to host the namespace.
    NamespaceThe namespace name must include a mandatory prefix, which is the project name.
  5. (Optional) Configure Resource Quota.

    Every time a resource limit (limits) for computational or storage resources is specified for a container within the namespace, or each time a new Pod or PVC is added, it will consume the quota set here.

    NOTICE:

    • The namespace's resource quota is inherited from the project's allocated quota in the cluster. The maximum allowable quota for a resource type cannot exceed the remaining available quota of the project. If any resource's available quota reaches 0, namespace creation will be blocked. Contact your platform administrator for quota adjustments.

    • GPU Quota Configuration Requirements:

      • GPU quotas (vGPU or pGPU) can only be configured if GPU resources are provisioned in the cluster.
      • When using vGPU, memory quotas can also be set.

      GPU Unit Definitions:

      • vGPU Units: 100 virtual GPU units (vGPU) = 1 physical GPU core (pGPU).
        • Note: pGPU units are counted in whole numbers only (e.g., 1 pGPU = 1 core = 100 vGPU).
      • Memory Units:
        • 1 memory unit = 256 MiB.
        • 1 GiB = 4 memory units (1024 MiB = 4 × 256 MiB).
    • Default Quota Behavior:

      • If no quota is specified for a resource type, the default is unbounded.
      • This means the namespace can consume all available resources of that type allocated to the project without explicit limits.

    Quota Parameter Description

    CategoryQuota TypeValue and UnitDescription
    Storage Resource QuotaAllGiThe total requested storage capacity of all Persistent Volume Claims (PVCs) in this namespace cannot exceed this value.
    Storage ClassThe total requested storage capacity of all Persistent Volume Claims (PVCs) associated with the selected StorageClass in this namespace cannot exceed this value.

    Note: Please allocate StorageClass to the project that the namespace belongs to in advance.
    Extended ResourcesObtained from the configuration dictionary (ConfigMap); please refer to Extended Resource Description for details.-This category will not be displayed if there is no corresponding configuration dictionary.
    Other QuotasEnter custom quotas; for specific input rules, please refer to Other Quota Description.-To avoid problems of resource duplication, the following values are not allowed as quota types:
    • limits.cpu
    • limits.memory
    • requests.cpu
    • requests.memory
    • pods
    • cpu
    • memory
  6. (Optional) Configure Container Limit Range; please refer to Container Limit Range for more details.

  7. (Optional) Configure Pod Security Policies; please refer to Pod Security Policies for specific details.

  8. (Optional) In the More Configuration area, add labels and annotations for the current namespace.

    Tip: You can define the attributes of the namespace through labels or supplement the namespace with additional information through annotations; both can be used to filter and sort namespaces.

  9. Click on Create.

Creating a Namespace via CLI

Namespace YAML

apiVersion: v1
kind: Namespace
metadata:
  name: <namespace-name>

Create Namespace Command Line

kubectl create namespace <namespace-name>