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

  • The Application Management for Cluster Federation extension must be installed and enabled on the KubeSphere platform.

  • You need to join a federated project and have the Federated Project Management permission in the corresponding workspace.

Steps

  1. Log in to the KubeSphere web console as a user with Federated Project Management permissions and enter your federated project.

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

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

  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.