♻️ mqtt

This commit is contained in:
auricom
2022-09-17 17:34:26 +02:00
parent d0b584e22c
commit 082575cdf8
2 changed files with 38 additions and 62 deletions

View File

@@ -2,67 +2,43 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1 apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: zigbee2mqtt name: &app zigbee2mqtt
namespace: default namespace: default
spec: spec:
interval: 15m interval: 15m
chart: chart:
spec: spec:
chart: zigbee2mqtt chart: app-template
version: 9.4.2 version: 0.2.1
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: k8s-at-home-charts name: bjw-s-charts
namespace: flux-system namespace: flux-system
interval: 5m install:
createNamespace: true
remediation:
retries: 5
upgrade:
remediation:
retries: 5
dependsOn:
- name: node-feature-discovery
namespace: default
- name: emqx
namespace: default
values: values:
fullnameOverride: *app
image: image:
repository: ghcr.io/koenkk/zigbee2mqtt repository: koenkk/zigbee2mqtt
tag: 1.27.2 tag: 1.27.2
env: env:
TZ: ${TIMEZONE} TZ: "${TIMEZONE}"
ZIGBEE2MQTT_DATA: /data ZIGBEE2MQTT_DATA: /data
service:
config: main:
homeassistant: true ports:
device_options: http:
retain: true port: &port 8080
permit_join: false
mqtt:
base_topic: zigbee2mqtt
server: "mqtt://emqx.default.svc.cluster.local."
user: ${SECRET_MQTT_USER}
password: ${SECRET_MQTT_PASSWORD}
serial:
port: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
advanced:
log_output:
- console
network_key:
- 204
- 61
- 75
- 23
- 44
- 230
- 24
- 203
- 53
- 5
- 248
- 32
- 50
- 84
- 44
- 159
frontend:
port: 8080
experimental:
new_api: true
securityContext:
privileged: true
ingress: ingress:
main: main:
enabled: true enabled: true
@@ -70,14 +46,15 @@ spec:
annotations: annotations:
auth.home.arpa/enabled: "true" auth.home.arpa/enabled: "true"
hosts: hosts:
- host: "zigbee.${SECRET_CLUSTER_DOMAIN}" - host: &host "zigbee.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls: tls:
- hosts: - hosts:
- "zigbee.${SECRET_CLUSTER_DOMAIN}" - *host
securityContext:
privileged: true
persistence: persistence:
config: config:
enabled: true enabled: true
@@ -88,14 +65,11 @@ spec:
type: hostPath type: hostPath
hostPath: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 hostPath: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
hostPathType: CharDevice hostPathType: CharDevice
nodeSelector:
affinity: feature.node.kubernetes.io/custom-zigbee: "true"
nodeAffinity: resources:
requiredDuringSchedulingIgnoredDuringExecution: requests:
nodeSelectorTerms: memory: 100Mi
- matchExpressions: cpu: 100m
- { limits:
key: "feature.node.kubernetes.io/custom-zigbee", memory: 700Mi
operator: In,
values: ["true"],
}

View File

@@ -24,6 +24,8 @@ spec:
dependsOn: dependsOn:
- name: node-feature-discovery - name: node-feature-discovery
namespace: default namespace: default
- name: emqx
namespace: default
values: values:
image: image:
repository: ghcr.io/zwave-js/zwavejs2mqtt repository: ghcr.io/zwave-js/zwavejs2mqtt