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 cluster and have the Project Management permission within the cluster. For more information, refer to “Cluster Members” and “Cluster Roles”.

Steps

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

  2. Click Projects in the left navigation pane.

  3. In the project list, click the name of a project to open its details page.

  4. In the upper-left corner of the project details page, click More > Edit Project Quotas.

  5. 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.

  6. 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.

  7. 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.