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 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 Default Container Quotas.

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