Explain how to use dedicated node groups with labels and taints

pull/11697/head
Max Gautier 2024-11-09 14:12:10 +01:00
parent 04ea1f63bc
commit 7b4cc75138
No known key found for this signature in database
2 changed files with 22 additions and 0 deletions

2
docs/_sidebar.md generated
View File

@ -64,6 +64,8 @@
* [Ingress Nginx](/docs/ingress/ingress_nginx.md) * [Ingress Nginx](/docs/ingress/ingress_nginx.md)
* [Kube-vip](/docs/ingress/kube-vip.md) * [Kube-vip](/docs/ingress/kube-vip.md)
* [Metallb](/docs/ingress/metallb.md) * [Metallb](/docs/ingress/metallb.md)
* Manage Your Inventory
* [Dedicated Node Groups](/docs/manage_your_inventory/dedicated_node_groups.md)
* Operating Systems * Operating Systems
* [Amazonlinux](/docs/operating_systems/amazonlinux.md) * [Amazonlinux](/docs/operating_systems/amazonlinux.md)
* [Bootstrap-os](/docs/operating_systems/bootstrap-os.md) * [Bootstrap-os](/docs/operating_systems/bootstrap-os.md)

View File

@ -0,0 +1,20 @@
# Dedicated node groups
To reserved some nodes for particular workload (for instances, reserved GPU node for workload using them), you should
define an Ansible group for theses nodes (statically or dynamically) and set taints and labels for these those in your inventory,
using [Ansible group variable](https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html#assigning-a-variable-to-many-machines-group-variables).
See below for concrete examples.
## Nvidia GPU
When using the Nvidia GPU support in kubespray, the nodes should have the following variables set:
```yaml
node_taints:
- key: nvidia.com/gpu
effect: NoSchedule
... (any other node taints)
```
TODO: add the same for labels once