From 5121d98ffbffcca29a8e00c3374c1346b1f294f1 Mon Sep 17 00:00:00 2001 From: auricom <27022259+auricom@users.noreply.github.com> Date: Wed, 18 Aug 2021 16:00:01 +0200 Subject: [PATCH] fix: rflink on hass --- .../home-assistant/helm-release.yaml | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/cluster/apps/home-automation/home-assistant/helm-release.yaml b/cluster/apps/home-automation/home-assistant/helm-release.yaml index 509982a33..4eef24643 100644 --- a/cluster/apps/home-automation/home-assistant/helm-release.yaml +++ b/cluster/apps/home-automation/home-assistant/helm-release.yaml @@ -34,6 +34,9 @@ spec: hostNetwork: true dnsPolicy: ClusterFirstWithHostNet + securityContext: + privileged: true + service: main: annotations: @@ -85,6 +88,12 @@ spec: config: enabled: true existingClaim: hass-config + usb: + enabled: true + type: hostPath + hostPath: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5503731323735171A241-if00 + hostPathType: CharDevice + mountPath: /dev/ttyUSB0 addons: codeserver: @@ -114,10 +123,10 @@ spec: paths: - path: / pathType: Prefix - tls: - - hosts: - - "hass-config.${SECRET_CLUSTER_DOMAIN}" - secretName: "${SECRET_CLUSTER_CERTIFICATE_DEFAULT}" + tls: + - hosts: + - "hass-config.${SECRET_CLUSTER_DOMAIN}" + secretName: "${SECRET_CLUSTER_CERTIFICATE_DEFAULT}" volumeMounts: - name: config mountPath: /config @@ -126,3 +135,10 @@ spec: requests: cpu: 500m memory: 1000Mi + + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - { key: "feature.node.kubernetes.io/custom-rflink", operator: In, values: ["true"] }