GPUs allocated from reservations do not count towards quotas on the number of GPUs.
How to add reservations to node groups
Node groups of a regular type with GPUs support reservations. Preemptible node groups and node groups without GPUs do not support reservations.- CLI
- Terraform
To configure reservations, use the
--template-reservation-policy-* parameters when creating or updating a node group:-
Create a node group:
-
Update a node group:
-
--template-reservation-policy-policy: Policy for reservation usage. Supports the following values:-
auto: Node group resources are allocated from reservations. If no reservations are currently available, the node group runs without them. In this case, resources for the node group are provided from the common pool.Theautovalue is default. If you don’t have any reservations and you don’t set the--template-reservation-policy-policyparameter, theautovalue applies and the node group runs without reservations. -
forbid: Node group resources are provided from the common pool; no reservations are used. -
strict: Node group resources are exclusively allocated from reservations. The node group doesn’t run without the reservations.
-
-
--template-reservation-policy-reservation-ids(optional): IDs of specific reservations (capacity block groups). Use this parameter only if you need specific reservations. Specify the IDs in the order in which reservations should apply. For instance, resources should be allocated from the first specified reservation. When it is exhausted or expired, the service uses resources from the second specified reservation, and so on. Make sure to select reservations that have enough capacity and that do not expire in several days.
policy | reservation-ids | Behavior | |
|---|---|---|---|
auto | Not specified | Managed Kubernetes tries to launch a node group in any available and suitable reservation. If none is found, resources for all nodes in the node group are provided from the common pool, not from a reservation. If a reservation doesn’t have enough capacity for the whole node group, it uses all the resources available in this reservation and also takes resources from the common pool. In other words, resources for some nodes are provided from the reservation, and resources for the rest of the nodes are provided from the common pool. | |
auto | Specified | Managed Kubernetes tries to launch a node group in one of the specified reservations. If none of them fit (for example, they are not currently active or there are not enough GPUs), the same logic of the auto policy applies. | |
forbid | Not specified | Node group resources are provided from the common pool. No reservations are used. | |
forbid | Specified | Not supported. If you apply this combination, it will result in a validation error. | |
strict | Not specified | Managed Kubernetes tries to launch a node group in any available and suitable reservation. If none is found, a request for creating or updating a node group fails. | |
strict | Specified | Managed Kubernetes tries to launch a node group in one of the specified reservations. If none of them fit, a request for creating or updating a node group fails. |