limited eg

This commit is contained in:
Ariel Sosnovsky committed 2023-10-20 12:13:33 -04:00
1 parent b266e2266b
commit 9c699056d2
3 files changed
-105

No files matched your search

-24
View File
@@ -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
-9
View File
@@ -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
-72
View File
@@ -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