From 9c699056d2a4c62a0f99131ee97308a18204b03d Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Fri, 20 Oct 2023 12:13:33 -0400 Subject: [PATCH] limited eg --- k8s/apps/z2m/templates/config.yaml | 24 --------- k8s/apps/z2m/templates/deployment.yaml | 9 ---- k8s/apps/z2m/templates/ser2sock.yaml | 72 -------------------------- 3 files changed, 105 deletions(-) delete mode 100644 k8s/apps/z2m/templates/config.yaml delete mode 100644 k8s/apps/z2m/templates/ser2sock.yaml diff --git a/k8s/apps/z2m/templates/config.yaml b/k8s/apps/z2m/templates/config.yaml deleted file mode 100644 index b0b90fa..0000000 --- a/k8s/apps/z2m/templates/config.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: z2m-config -data: - configuration.yaml: |- - permit_join: true - homeassistant: true - advanced: - log_level: debug - mqtt: - base_topic: "zigbee2mqtt" - server: "mqtt://{{.Values.global.mqtt.host}}:{{.Values.global.mqtt.port}}" - user: "{{.Values.global.mqtt.username}}" - password: "{{.Values.global.mqtt.password}}" - serial: - port: "tcp://ser2sock.{{ .Release.Namespace }}.svc.cluster.local:10000" - frontend: - port: "8080" - advanced: - network_key: "GENERATE" - devices: /data/devices.yaml - groups: /data/groups.yaml \ No newline at end of file diff --git a/k8s/apps/z2m/templates/deployment.yaml b/k8s/apps/z2m/templates/deployment.yaml index 1638c62..3571eb5 100644 --- a/k8s/apps/z2m/templates/deployment.yaml +++ b/k8s/apps/z2m/templates/deployment.yaml @@ -27,9 +27,6 @@ spec: - name: data-path persistentVolumeClaim: claimName: {{ .Values.persistence.data_path.claimName }} - - name: configuration - configMap: - name: z2m-config containers: - name: main imagePullPolicy: "IfNotPresent" @@ -72,12 +69,6 @@ spec: mountPath: "{{ .Values.devicePath }}" - name: data-path mountPath: /data - - name: configuration - mountPath: /app/configuration.yaml - subPath: configuration.yaml - - name: configuration - mountPath: /config/configuration.yaml - subPath: configuration.yaml - name: udev mountPath: /run/udev diff --git a/k8s/apps/z2m/templates/ser2sock.yaml b/k8s/apps/z2m/templates/ser2sock.yaml deleted file mode 100644 index afaadde..0000000 --- a/k8s/apps/z2m/templates/ser2sock.yaml +++ /dev/null @@ -1,72 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: "ser2sock" -spec: - replicas: 1 - revisionHistoryLimit: 2 - strategy: - type: Recreate - selector: - matchLabels: - {{ .Release.Name }}/app: ser2sock - template: - metadata: - labels: - {{ .Release.Name }}/app: ser2sock - 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: "{{ .Values.devicePath }}" - volumes: - - 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 = "{{ .Values.devicePath }}" - baudrate = 115200 - port = 10000 ---- -apiVersion: v1 -kind: Service -metadata: - name: ser2sock - labels: - {{ .Release.Name }}/app: ser2sock -spec: - type: ClusterIP - selector: - {{ .Release.Name }}/app: ser2sock - ports: - - port: 10000 - targetPort: 10000 - name: zigbee - protocol: TCP \ No newline at end of file