2021-07-01 18:26:22 +00:00
|
|
|
#
|
|
|
|
# IMPORTANT NOTE
|
|
|
|
#
|
|
|
|
# This chart inherits from our common library chart. You can check the default values/options here:
|
|
|
|
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
|
|
|
|
#
|
|
|
|
|
|
|
|
image:
|
|
|
|
# -- image repository
|
|
|
|
repository: tenstartups/ser2sock
|
|
|
|
# -- image tag
|
2021-09-11 11:00:39 +00:00
|
|
|
tag: latest@sha256:42
|
2021-07-01 18:26:22 +00:00
|
|
|
# -- image pull policy
|
|
|
|
pullPolicy: Always
|
|
|
|
|
2021-09-10 18:10:04 +00:00
|
|
|
securityContext:
|
|
|
|
privileged: false
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
allowPrivilegeEscalation: true
|
|
|
|
runAsNonRoot: true
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 568
|
|
|
|
runAsGroup: 568
|
|
|
|
fsGroup: 568
|
|
|
|
supplementalGroups: []
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
|
2021-07-01 18:26:22 +00:00
|
|
|
# -- environment variables. See [image docs](https://github.com/tenstartups/ser2sock) for more details.
|
|
|
|
# @default -- See below
|
|
|
|
env:
|
|
|
|
# -- Set the container timezone
|
|
|
|
TZ: UTC
|
|
|
|
# -- Port where ser2sock listens
|
|
|
|
LISTENER_PORT: "{{ .Values.service.main.ports.main.port }}"
|
|
|
|
# -- Path to the serial device
|
|
|
|
SERIAL_DEVICE: "{{ .Values.persistence.usb.mountPath }}"
|
|
|
|
# -- Serial device baud rate
|
|
|
|
BAUD_RATE: 115200
|
|
|
|
|
|
|
|
# -- Configures service settings for the chart.
|
|
|
|
# @default -- See values.yaml
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
protocol: TCP
|
|
|
|
port: 10000
|
|
|
|
|
|
|
|
|
|
|
|
# -- Configure persistence settings for the chart under this key.
|
|
|
|
# @default -- See values.yaml
|
|
|
|
persistence:
|
|
|
|
# -- Configure a hostPathMount to mount a USB device in the container.
|
|
|
|
# @default -- See values.yaml
|
|
|
|
usb:
|
|
|
|
enabled: false
|
|
|
|
type: hostPath
|
|
|
|
mountPath: /dev/ttyUSB0
|
|
|
|
|
|
|
|
# -- Affinity constraint rules to place the Pod on a specific node.
|
|
|
|
# [[ref]](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
|
|
|
|
affinity: {}
|
|
|
|
# nodeAffinity:
|
|
|
|
# requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
# nodeSelectorTerms:
|
|
|
|
# - matchExpressions:
|
|
|
|
# - key: app
|
|
|
|
# operator: In
|
|
|
|
# values:
|
|
|
|
# - ser2sock-controller
|