This section describes how to edit project quotas.

Project quotas include the following settings:

  • Resource Reservation: Container resource reservation is the resources reserved by the system for a single container. The project resource reservation is the maximum sum of all container resource reservations in the project. The KubeSphere platform currently supports setting CPU and memory reservations for projects.

  • Resource Limits: Container resource limits are the maximum resources a single container can use. The project resource limit is the maximum sum of all container resource limits in the project. KubeSphere projects can set CPU limits, memory limits, and GPU limits.

  • Storage Resource Quotas: You can limit the total storage resources under a project, including the total storage resources and the resources associated with the storage class.

  • Application Resource Quotas: The maximum number of pods, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, Persistent Volume Claims, Services, Ingresses, Secrets, and ConfigMaps that can be created in a project.

Prerequisites

You need to join a cluster and have the Project Management permission in the cluster. For more information, see Cluster Members and Cluster Roles.

Steps

  1. Log in to the KubeSphere web console with a user who has Project Management permissions and enter your cluster.

  2. Click Project in the left navigation pane.

  3. Click the name of a project in the project list to open its details page.

  4. On the project details page, click Operation > Edit Project Quotas.

  5. In the Edit Project Quota dialog box, set the project resource reservations and resource limits.

    Parameter Description

    CPU Reservation

    The maximum total CPU reservation for all containers in the project, in cores.

    CPU Limit

    The maximum total CPU limit for all containers in the project, in cores.

    Memory Reservation

    The maximum total memory reservation for all containers in the project, in GiB.

    Memory Limit

    The maximum total memory limit for all containers in the project, in GiB.

    GPU Type

    The type of GPU that containers in the project can use.

    GPU Limit

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

  6. In the Storage Resource Quota area of the Edit Project Quota dialog box, set the total storage resource and storage class-related resources.

  7. In the Application Resource Quota area of the Edit Project Quota dialog box, set the maximum number of application resources for the project, and then click OK.

    • Click Add to set the maximum number for multiple types of application resources.

    • You can set the maximum number of pods, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, PersistentVolumeClaims, Services, Ingresses, Secrets, and ConfigMaps in the project.