From e3f55cc4c27a4373d9532b233582da4e402c7667 Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Thu, 19 Oct 2023 17:11:16 -0400 Subject: [PATCH] fixed yaml --- k8s/apps/z2m/templates/deployment.yaml | 8 +-- k8s/apps/z2m/templates/ser2sock.yaml | 67 +++++++++++++------------- k8s/apps/z2m/values.yaml | 5 +- 3 files changed, 42 insertions(+), 38 deletions(-) diff --git a/k8s/apps/z2m/templates/deployment.yaml b/k8s/apps/z2m/templates/deployment.yaml index 9d12320..1638c62 100644 --- a/k8s/apps/z2m/templates/deployment.yaml +++ b/k8s/apps/z2m/templates/deployment.yaml @@ -60,10 +60,10 @@ spec: timeoutSeconds: 1 periodSeconds: 5 env: - - name: TZ - value: "{{ .Values.global.timezone }}" - - name: "ZIGBEE2MQTT_DATA" - value: "/data" + - name: TZ + value: "{{ .Values.global.timezone }}" + - name: "ZIGBEE2MQTT_DATA" + value: "/data" ports: - containerPort: 8080 name: http diff --git a/k8s/apps/z2m/templates/ser2sock.yaml b/k8s/apps/z2m/templates/ser2sock.yaml index a3c9599..5c42169 100644 --- a/k8s/apps/z2m/templates/ser2sock.yaml +++ b/k8s/apps/z2m/templates/ser2sock.yaml @@ -1,3 +1,4 @@ +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -18,41 +19,41 @@ spec: affinity: {{- .Values.affinity | toYaml | nindent 12}} containers: - - name: ser2sock - image: lansible/ser2sock:latest - imagePullPolicy: IfNotPresent - securityContext: - privileged: true - readOnlyRootFilesystem: true - ports: - - containerPort: 10000 - name: zigbee - volumeMounts: - - name: ser2sock-config - mountPath: /config - - name: zigbee-usb - mountPath: /dev/ttyACM0 + - name: ser2sock + image: lansible/ser2sock:latest + imagePullPolicy: IfNotPresent + securityContext: + privileged: true + readOnlyRootFilesystem: true + ports: + - containerPort: 10000 + name: zigbee + volumeMounts: + - name: ser2sock-config + mountPath: /config + - name: zigbee-usb + mountPath: /dev/ttyACM0 volumes: - - name: ser2sock-config - configMap: - name: ser2sock-config - - name: zigbee-usb - hostPath: - path: "{{ .Values.devicePath }}" - type: CharDevice + - name: ser2sock-config + configMap: + name: ser2sock-config + - name: zigbee-usb + hostPath: + path: "{{ .Values.devicePath }}" + type: CharDevice --- - apiVersion: v1 - kind: ConfigMap - metadata: - name: ser2sock-config - labels: - app: ser2sock - data: - ser2sock.conf: | - [ser2sock] - device = /dev/ttyACM0 - baudrate = 115200 - port = 10000 +apiVersion: v1 +kind: ConfigMap +metadata: + name: ser2sock-config + labels: + app: ser2sock +data: + ser2sock.conf: | + [ser2sock] + device = /dev/ttyACM0 + baudrate = 115200 + port = 10000 --- apiVersion: v1 kind: Service diff --git a/k8s/apps/z2m/values.yaml b/k8s/apps/z2m/values.yaml index 4f5502d..5150bfb 100644 --- a/k8s/apps/z2m/values.yaml +++ b/k8s/apps/z2m/values.yaml @@ -1,6 +1,9 @@ image: "koenkk/zigbee2mqtt" tag: "latest-dev" - +global: + timezone: changeme + mqtt: + host: "" flags: enableNodePort: false