fix(docs): update nvidia guide (#32226)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [ ] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):` or `chore(chart-name):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Alfred Göppel
2025-02-18 20:27:10 +01:00
committed by GitHub
parent 74226a7e50
commit 1271d21f84
@@ -1,5 +1,5 @@
---
title: Adding a Nvidia-GPU to your Cluster
title: Nvidia-GPU
---
:::caution[Charts]
@@ -37,35 +37,19 @@ schematic:
## GPU Talos Patch
Additionally, you will need to create the following patch file `gpu.yaml` in the patches folder of clustertool:
```yaml
- op: add
path: /machine/kernel
value:
modules:
- "name": "nvidia"
- "name": "nvidia_uvm"
- "name": "nvidia_drm"
- "name": "nvidia_modeset"
- op: add
path: /machine/sysctls
value:
"net.core.bpf_jit_harden": 1
```
This patch file then needs to be added to the `talconfig.yaml`. The placement of this line would be in relation to where your GPU exists. More than likely it would be placed under a specific node:
Additionally, you will need to add the `nvidia.yaml` patch shipped by clustertool to your `talconfig.yaml`
This patch file then needs to be added to the `talconfig.yaml`. The placement of this line would be in relation to where your GPU exists.
More than likely it would be placed under a specific node:
```yaml
patches:
- "@./patches/gpu.yaml"
- "@./patches/nvidia.yaml"
```
Example:
```yaml
nodes:
# We would adivce to always stick to a "k8s-something-1" style naming scheme
@@ -76,12 +60,11 @@ nodes:
customization:
systemExtensions:
officialExtensions:
- siderolabs/util-linux-tools
- siderolabs/nonfree-kmod-nvidia-lts
- siderolabs/nvidia-container-toolkit-lts
### Note the placement of the gpu patch reference ###
patches:
- "@./patches/gpu.yaml"
- "@./patches/nvidia.yaml"
```
## Adding it to your cluster