mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-31 05:49:04 +00:00
39 lines
983 B
Go Template
39 lines
983 B
Go Template
{{- define "custom.custom.configuration.header" -}}
|
|
## Custom configuration
|
|
{{- end -}}
|
|
|
|
{{- define "custom.custom.configuration" -}}
|
|
{{ template "custom.custom.configuration.header" . }}
|
|
|
|
**IMPORTANT NOTE:** a piaware device must be accessible on the node where this pod runs, in order for this chart to function properly.
|
|
|
|
First, you will need to mount your piaware device into the pod, you can do so by adding the following to your values:
|
|
|
|
```yaml
|
|
additionalVolumeMounts:
|
|
- name: usb
|
|
mountPath: /path/to/device
|
|
|
|
additionalVolumes:
|
|
- name: usb
|
|
hostPath:
|
|
path: /path/to/device
|
|
```
|
|
|
|
Second you will need to set a nodeAffinity rule, for example:
|
|
|
|
```yaml
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- piaware
|
|
```
|
|
|
|
... where a node with an attached piaware USB device is labeled with `app: piaware`
|
|
{{- end -}}
|