mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
124 lines
3.2 KiB
YAML
124 lines
3.2 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app zwave-js-ui
|
|
namespace: default
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 2.0.3
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
values:
|
|
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
|
|
websocket:
|
|
port: 3000
|
|
serviceMonitor:
|
|
main:
|
|
enabled: true # requires https://github.com/kvaster/zwavejs-prom
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
className: "nginx"
|
|
annotations:
|
|
auth.home.arpa/enabled: "true"
|
|
hajimari.io/icon: mdi:z-wave
|
|
hosts:
|
|
- host: &host "zwave.${SECRET_CLUSTER_DOMAIN}"
|
|
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:
|
|
usb:
|
|
type: hostPath
|
|
hostPath: /dev/serial/by-id/usb-0658_0200-if00
|
|
hostPathType: CharDevice
|
|
globalMounts:
|
|
- path: /dev/serial/by-id/usb-0658_0200-if00
|