Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Warning

This page was translated from the original Japanese version by PLaMo Translate. The Japanese version is authoritative; the English translation may contain inaccuracies.

Limiting Resource Usage by Namespace

You can restrict resource usage on a per-Namespace basis by creating a ResourceQuota resource. 1 2 This allows you to prevent excessive consumption of compute resources within specific Namespaces and to balance resource allocation across different Namespaces. 3

To set quotas for the subNamespace org-<organization-name>--foo, you would create a ResourceQuota with the following configuration:

apiVersion: v1
kind: ResourceQuota
metadata:
  name: quota
  namespace: org-<organization-name>--foo
spec:
  hard:
    requests.preferred.jp/mncore2: 4
    requests.nvidia.com/gpu: 0

In this example, the quota limits MN-Core 2 usage to a maximum of 4 units and restricts NVIDIA GPU usage.


  1. ResourceQuotas by Namespace are not automatically created. You must create them as needed.

  2. ResourceQuotas can also be created for the root Namespace.

  3. If you set a quota value larger than the organization-wide quota, the organization-wide quota will take precedence.