This section describes how to edit the default container quota.

The default container quota is the default value for resource reservations and resource limits for containers in a project. When creating a container in a project, if the user does not specify resource reservations and resource limits, the KubeSphere system will automatically use the default container quota.

The default container quota includes two types of settings:

  • Resource Reservation: The resources reserved by the system for the container.

  • Resource Limit: The upper limit of resources that the container can use.

Prerequisites

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

Steps

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

  2. Click Project Management > Project Quotas in the left navigation pane.

  3. On the Project Quotas page, select a project from the drop-down list in the upper-left corner, and click Operation > Edit Default Container Quotas.

  4. In the Edit Default Container Quotas dialog box, set the default resource requests and limits for containers, then click OK.

    Parameter Description

    CPU Reservation

    CPU resources reserved for the container, in cores.

    CPU Limit

    The maximum CPU resources allowed for the container, in cores.

    Memory Reservation

    Memory resources reserved for the container, in MiB.

    Memory Limit

    The maximum memory resources allowed for the container, in MiB.

    GPU Type

    The type of GPU allowed for the container.

    GPU Limit

    The maximum number of GPUs allowed for the container, in GPUs.