charts/charts/stable/ser2sock/README_CONFIG.md.gotmpl
ᗪєνιη ᗷυнʟ 91aef6139f
[ser2sock] migrate to common library (#719)
* migrate ser2sock to common
2021-03-26 08:12:08 +01:00

39 lines
1.0 KiB
Go Template

{{- define "custom.custom.configuration.header" -}}
## Custom configuration
{{- end -}}
{{- define "custom.custom.configuration" -}}
{{ template "custom.custom.configuration.header" . }}
**IMPORTANT NOTE:** a ser2sock controller 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 ser2sock 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:
- ser2sock-controller
```
... where a node with an attached ser2sock controller USB device is labeled with `app: ser2sock-controller`
{{- end -}}