mirror of
https://github.com/truenas/charts.git
synced 2026-02-09 13:26:55 +08:00
* Set nvidia caps to void when no gpu is passed * add tests to init containers too * Additionally add `render` group when gpu is added * Correctly handle "0" gpu * handle fsGroup 0 properly * fix gh highlight * Correct nvidia variable and add additional check for runtime * cast both sides of the comparison * fix externalinterfaces nesting * Add dnsConfig missing docs
34 lines
1.6 KiB
Markdown
34 lines
1.6 KiB
Markdown
# Scale GPU
|
|
|
|
| Key | Type | Required | Helm Template | Default | Description |
|
|
| :-------------------------------------------------- | :------: | :------: | :-----------: | :-----: | :-------------------------------------------- |
|
|
| scaleGPU | `list` | ❌ | ❌ | `[]` | Define the external interfaces as list |
|
|
| scaleGPU.targetSelector | `dict` | ❌ | ❌ | `{}` | Where to assign the GPU |
|
|
| scaleGPU.targetSelector.[pod-name] | `list` | ❌ | ❌ | `[]` | The workload to select |
|
|
| scaleGPU.targetSelector.[pod-name].[container-name] | `string` | ✅ | ❌ | `""` | The container to select |
|
|
| scaleGPU.gpu | `dict` | ✅ | ❌ | `{}` | The GPU key value pair to define in resources |
|
|
|
|
> When `targetSelector` is a dict, each entry is a list, containing the name(s) of the container(s) to assign the GPU
|
|
> When `targetSelector` is a empty, it will assign the GPU to the primary pod/container
|
|
> Selected pod's will get appended the group `44` and `107` in `supplementalGroups`. This is to allow rootless containers to access the GPU
|
|
|
|
---
|
|
|
|
Appears in:
|
|
|
|
- `.Values.scaleGPU`
|
|
|
|
---
|
|
|
|
Examples:
|
|
|
|
```yaml
|
|
scaleGPU:
|
|
- gpu:
|
|
# Injected from SCALE UI/Middleware using $ref
|
|
nvidia.com/gpu: "1"
|
|
targetSelector:
|
|
workload-name:
|
|
- container-name
|
|
```
|