docs(tenant): state what GPU budgets cover and what they do not

Class budgets cover class entries only. Raw-name GPU entries and the
surge workers of a rolling update are outside them, and a hoster needs
to know that, and how a native quota on the resource name closes the
raw-name case, before relying on the budgets as a cap.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
Aleksei Sviridkin committed 2026-11-28 07:18:08 +03:00
1 parent a42db84ec3
commit afa0dc570a
2 files changed
+19

No files matched your search

+4
View File
@@ -126,6 +126,10 @@ A `VMInstance` reserves the `count` of each class entry and a `KubernetesNodes`
GPU budgets are checked against the application's tenant pool, not recursively against every ancestor's GPU budget.
Class budgets cover class entries only: not raw-name GPU entries, which name a device-plugin resource directly, and not a KubeVirt VirtualMachine that a tenant administrator writes directly. Cap those with a native quota on the resource name, for example `nvidia.com/AD102GL_L40S: 2`, which is rendered as a `requests.` quota that Kubernetes charges against every pod requesting the resource.
A worker pool with class entries must keep `minReplicas` at or below `maxReplicas` when it is written: a new pool starts at `minReplicas` workers, and the reservation is `maxReplicas` times the count. Pools without class entries are not affected. A rolling update of a worker pool can run up to `max(1, maxReplicas)` extra workers at once, because that is the pool's `maxSurge`, and the reservation does not include these surge workers.
**Example:**
```yaml
resourceQuotas:
@@ -84,6 +84,21 @@ tests:
path: metadata.name
pattern: ^tenant-quota$
# Class budgets do not cover raw-name GPU entries; a native quota on the
# resource name does. The pod quota evaluator charges an extended resource
# only under requests.<name>, so that is the key that has to be rendered.
- it: caps a raw GPU resource name with a requests quota
set:
resourceQuotas:
nvidia.com/AD102GL_L40S: 1
documentSelector:
path: kind
value: ResourceQuota
asserts:
- equal:
path: spec.hard["requests.nvidia.com/AD102GL_L40S"]
value: 1
- it: renders nothing without resourceQuotas
asserts:
- hasDocuments: