From 2106e8daf39f5051fb8cf418e60e478bbb73320c Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Wed, 18 Oct 2023 18:05:01 -0400 Subject: [PATCH] udev --- k8s/apps/z2m/templates/config.yaml | 1 + k8s/apps/z2m/templates/deployment.yaml | 50 ++++++++++++++------------ 2 files changed, 28 insertions(+), 23 deletions(-) diff --git a/k8s/apps/z2m/templates/config.yaml b/k8s/apps/z2m/templates/config.yaml index e459b19..eabd07e 100644 --- a/k8s/apps/z2m/templates/config.yaml +++ b/k8s/apps/z2m/templates/config.yaml @@ -6,6 +6,7 @@ metadata: data: configuration.yaml: |- permit_join: true + homeassistant: true advanced: log_level: debug mqtt: diff --git a/k8s/apps/z2m/templates/deployment.yaml b/k8s/apps/z2m/templates/deployment.yaml index af45f95..926d905 100644 --- a/k8s/apps/z2m/templates/deployment.yaml +++ b/k8s/apps/z2m/templates/deployment.yaml @@ -18,6 +18,9 @@ spec: affinity: {{- .Values.affinity | toYaml | nindent 12}} volumes: + - name: udev + hostPath: + path: /run/udev - name: zigbee-stick hostPath: path: "{{ .Values.devicePath }}" @@ -35,29 +38,27 @@ spec: image: "{{ .Values.image }}:{{ .Values.tag | default .Chart.AppVersion }}" resources: {{- .Values.resources | toYaml | nindent 14}} - # livenessProbe: - # httpGet: - # path: / - # port: http - # scheme: HTTP - # initialDelaySeconds: 10 - # failureThreshold: 10 - # timeoutSeconds: 30 - # readinessProbe: - # httpGet: - # path: / - # port: http - # scheme: HTTP - # initialDelaySeconds: 10 - # failureThreshold: 10 - # timeoutSeconds: 30 - # startupProbe: - # httpGet: - # path: / - # port: http - # scheme: HTTP - # failureThreshold: 60 - # periodSeconds: 15 + livenessProbe: + tcpSocket: + port: http + initialDelaySeconds: 0 + failureThreshold: 3 + timeoutSeconds: 1 + periodSeconds: 10 + readinessProbe: + tcpSocket: + port: http + initialDelaySeconds: 0 + failureThreshold: 3 + timeoutSeconds: 1 + periodSeconds: 10 + startupProbe: + tcpSocket: + port: http + initialDelaySeconds: 0 + failureThreshold: 30 + timeoutSeconds: 1 + periodSeconds: 5 env: - name: TZ value: "{{ .Values.global.timezone }}" @@ -72,3 +73,6 @@ spec: - name: configuration mountPath: /app/data/configuration.yaml subPath: configuration.yaml + - name: udev + mountPath: /run/udev +