diff --git a/cluster/apps/home-automation/kustomization.yaml b/cluster/apps/home-automation/kustomization.yaml index 14b2593ff..1c286f1fa 100644 --- a/cluster/apps/home-automation/kustomization.yaml +++ b/cluster/apps/home-automation/kustomization.yaml @@ -5,5 +5,6 @@ resources: - emqx - frigate - home-assistant + - ser2sock - zigbee2mqtt - zwavejs2mqtt diff --git a/cluster/apps/home-automation/ser2sock/helm-release.yaml b/cluster/apps/home-automation/ser2sock/helm-release.yaml new file mode 100644 index 000000000..6993c4f08 --- /dev/null +++ b/cluster/apps/home-automation/ser2sock/helm-release.yaml @@ -0,0 +1,54 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: ser2sock + namespace: home-automation +spec: + interval: 5m + chart: + spec: + # renovate: registryUrl=https://k8s-at-home.com/charts/ + chart: ser2sock + version: 5.0.0 + sourceRef: + kind: HelmRepository + name: k8s-at-home-charts + namespace: flux-system + interval: 5m + values: + image: + repository: tenstartups/ser2sock + tag: latest + pullPolicy: IfNotPresent + + env: + TZ: "Europe/Paris" + LISTENER_PORT: 10000 + BAUD_RATE: 57600 + SERIAL_DEVICE: "/dev/ttyUSB0" + + securityContext: + privileged: true + + persistence: + usb: + enabled: true + type: hostPath + # hostPathType: CharDevice + hostPath: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5503731323735191C111-if00 + mountPath: /dev/ttyUSB0 + + resources: + requests: + memory: 50Mi + cpu: 15m + limits: + memory: 250Mi + + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - { key: "feature.node.kubernetes.io/custom-rflink", operator: In, values: ["true"] } diff --git a/cluster/apps/home-automation/ser2sock/kustomization.yaml b/cluster/apps/home-automation/ser2sock/kustomization.yaml new file mode 100644 index 000000000..2fa2de20c --- /dev/null +++ b/cluster/apps/home-automation/ser2sock/kustomization.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - helm-release.yaml