⬆️ zwave-js-ui app template v2

This commit is contained in:
auricom
2023-10-28 15:41:53 +02:00
parent 0d5af606ea
commit 36fc54604f
6 changed files with 91 additions and 70 deletions

View File

@@ -10,7 +10,7 @@ spec:
chart:
spec:
chart: app-template
version: 1.5.1
version: 2.0.3
sourceRef:
kind: HelmRepository
name: bjw-s
@@ -27,41 +27,66 @@ spec:
uninstall:
keepHistory: false
values:
image:
repository: ghcr.io/zwave-js/zwave-js-ui
tag: 9.3.0
env:
TZ: "${TIMEZONE}"
controllers:
main:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
containers:
main:
image:
repository: ghcr.io/zwave-js/zwave-js-ui
tag: 9.3.0
env:
TZ: ${TIMEZONE}
probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /health
port: &port 8091
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
startup:
enabled: false
securityContext:
privileged: true
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
memory: 512Mi
pod:
nodeSelector:
aeotec.feature.node.kubernetes.io/zwave: "true"
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: rook-ceph-block
globalMounts:
- path: /usr/src/app/store
service:
main:
ports:
http:
port: &port 8091
port: *port
websocket:
enabled: true
port: 3000
serviceMonitor:
main:
enabled: true
probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /health
port: *port
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
startup:
enabled: false
enabled: true # requires https://github.com/kvaster/zwavejs-prom
ingress:
main:
enabled: true
ingressClassName: "nginx"
className: "nginx"
annotations:
auth.home.arpa/enabled: "true"
hajimari.io/icon: mdi:z-wave
@@ -70,34 +95,29 @@ spec:
paths:
- path: /
pathType: Prefix
service:
name: main
port: http
tls:
- hosts:
- *host
pod:
nodeSelector:
aeotec.feature.node.kubernetes.io/zwave: "true"
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: ceph-block
globalMounts:
- path: /usr/src/app/store
securityContext:
privileged: true
persistence:
config:
enabled: true
existingClaim: zwavejs2mqtt-config
mountPath: /usr/src/app/store
usb:
enabled: true
type: hostPath
hostPath: /dev/serial/by-id/usb-0658_0200-if00
hostPathType: CharDevice
mountPath: /dev/ttyUSB0
resources:
requests:
cpu: 10m
memory: 100Mi
limits:
memory: 500Mi
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: feature.node.kubernetes.io/custom-zwave
operator: In
values:
- "true"
globalMounts:
- path: /dev/serial/by-id/usb-0658_0200-if00