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.