Menu Close

Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

25.3. 查看限制

您可以通过在 Web 控制台中导航到项目的 Quota 页面来查看项目中定义的任何限值范围。

您还可以执行以下步骤,使用 CLI 查看限制范围详情:

  1. 获取项目中定义的限值范围对象列表。例如,对于名为 demoproject 的项目:

    $ oc get limits -n demoproject

    输出示例

    NAME              AGE
    resource-limits   6d

  2. 描述限值范围。例如,对于名为 resource-limits 的限制范围:

    $ oc describe limits resource-limits -n demoproject

    输出示例

    Name:                           resource-limits
    Namespace:                      demoproject
    Type                            Resource                Min     Max     Default Request Default Limit   Max Limit/Request Ratio
    ----                            --------                ---     ---     --------------- -------------   -----------------------
    Pod                             cpu                     200m    2       -               -               -
    Pod                             memory                  6Mi     1Gi     -               -               -
    Container                       cpu                     100m    2       200m            300m            10
    Container                       memory                  4Mi     1Gi     100Mi           200Mi           -
    openshift.io/Image              storage                 -       1Gi     -               -               -
    openshift.io/ImageStream        openshift.io/image      -       12      -               -               -
    openshift.io/ImageStream        openshift.io/image-tags -       10      -               -               -