Edit Project Quotas

This section explains how to edit project quotas.

Project quotas include the following settings:

  • Resource Request: Container resource request is the system’s reserved resources for a single container, and project resource request is the maximum value of the sum of all container resource requests in the project. KubeSphere currently supports setting CPU request and memory request for the project.

  • Resource Limit: Container resource limit is the upper limit of resources that a single container can use, and project resource limit is the maximum value of the sum of all container resource limits in the project. KubeSphere currently supports setting CPU limit, memory limit, and GPU limit for the project.

  • Storage Resource Quota: Limitations on the total amount of storage resources in the project, including the total amount of storage resources and associated resources with storage classes.

  • Application Resource Quota: Upper limits on the quantity of Pods, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, Persistent Volume Claims, Services, Ingresses, Secrets, and ConfigMaps that can be created in the project.

Prerequisites

You should join a project and have the Project Settings Management permission within the project. For more information, refer to “Project Members” and “Project Roles”.

Steps

  1. Log in to the KubeSphere web console with a user who has the Project Settings Management permission, and access your project.

  2. Click Project Settings > Basic Information in the left navigation pane.

  3. On the Basic Information page, click Manage, then select Edit Project Quotas from the dropdown list.

  4. In the Edit Project Quotas dialog, set the project resource request and resource limit.

    ParameterDescription

    CPU Request

    The maximum value of the sum of all container CPU requests in the project, measured in cores.

    CPU Limit

    The maximum value of the sum of all container CPU limits in the project, measured in cores.

    Memory Request

    The maximum value of the sum of all container memory requests in the project, measured in GiB.

    Memory Limit

    The maximum value of the sum of all container memory limits in the project, measured in GiB.

    GPU Type

    The GPU type that containers in the project can use. Currently, only NVIDIA GPU is supported.

    GPU Limit

    The maximum number of GPUs that all containers in the project can use, measured in GPUs.

  5. In the Storage Resource Quota section of the Edit Project Quotas dialog, set the total storage resource quota and associated resource quota with storage classes.

  6. In the Application Resource Quotas section of the Edit Project Quotas dialog, set the upper limits on the quantity of application resources in the project, then click OK.

    • You can set upper limits on the quantity of Pods, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, Persistent Volume Claims, Services, Ingresses, Secrets, and ConfigMaps in the project.

    • Click Add to set upper limits on the quantity of more application resources.