zwave-js-ui

by k8s On Lab

Helm chartv0.10.0App 11.27.0Apache-2.0Verified publisher

Helmchart for zwave-js-ui

About this chart

zwave-js-ui

Helmchart for zwave-js-ui

Homepage: https://github.com/k8sonlab/publiccharts/tree/main/charts/zwave-js-ui

Install

You can install this chart from the classic Helm repository or from OCI in GHCR.

Helm repository

helm repo add publiccharts https://charts.ar80.eu
helm repo update
helm install my-release publiccharts/zwave-js-ui

OCI registry (GHCR)

helm registry login ghcr.io
helm install my-release oci://ghcr.io/k8sonlab/publiccharts/zwave-js-ui --version <chart-version>

Maintainers

NameEmailUrl
varet80https://github.com/varet80

Source Code

Values

KeyTypeDefaultDescription
replicaCountint1
image.repositorystring"zwavejs/zwave-js-ui"
image.pullPolicystring"IfNotPresent"
image.tagstring""
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
healthobject{"livenessProbe":{"httpHeaders":[{"name":"Accept","value":"text/plain"}],"initialDelaySeconds":15,"path":"/health","periodSeconds":30},"readinessProbe":{"httpHeaders":[{"name":"Accept","value":"text/plain"}],"initialDelaySeconds":5,"path":"/health","periodSeconds":30},"startupProbe":{"httpHeaders":[{"name":"Accept","value":"text/plain"}],"initialDelaySeconds":5,"path":"/health","periodSeconds":30}}configure Probes
portsobject{"promExporter":{"containerPort":9090,"name":"http-exporter","protocol":"TCP","servicePort":9090},"ui":{"containerPort":8091,"name":"http-ui","protocol":"TCP","servicePort":80},"websocket":{"containerPort":3000,"name":"http-websocket","protocol":"TCP","servicePort":3000}}ui and websocet ports
serviceobject{"annotations":{},"port":80,"type":"ClusterIP"}Define service
service.typestring"ClusterIP"Use cluster ip as main service option
strategyobject{"type":"Recreate"}Setting default strategy, to avoid running 2 containers with one stick
serviceAccount.createbooltrue
serviceAccount.annotationsobject{}
serviceAccount.namestring""
envlist[{"name":"ZWAVE_JS_EXTERNAL_CONFIG","value":"/usr/src/app/store/.config-db"}]add your env variables here, following standard syntax
envFromlist[]you can add secrets and configmaps. this way you support external secrets for secure variables
podAnnotationsobject{}
podSecurityContextobject{}
securityContextobject{}
persistence.enabledboolfalseenable persistent volume, otherwise use empty dir
persistence.mountPathstring"/usr/src/app/store"change the path of store. Just in case you use different env variable.
httpRouteobject{"annotations":{},"apiVersion":"gateway.networking.k8s.io/v1","enabled":false,"hostnames":[],"kind":"HTTPRoute","labels":{},"parentRefs":[],"rules":[{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]}Support custom usb device usbDevice: /dev/ttyUSB0
httpRoute.enabledboolfalseEnable an HTTPRoute resource for nextcloud .
httpRoute.apiVersionstring"gateway.networking.k8s.io/v1"Set the route apiVersion
httpRoute.kindstring"HTTPRoute"Set the route kind
httpRoute.annotationsobject{}Route annotations
httpRoute.labelsobject{}Route labels
httpRoute.hostnameslist[]Route hostnames
httpRoute.parentRefslist[]Reference to parent gateways
ingress.enabledboolfalseEnable classic Ingress resource
ingress.classNamestring""Choose the ingress class
ingress.annotationsobject{}
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
resourcesobject{"limits":{"cpu":"300m","memory":"256Mi"},"requests":{"cpu":"200m","memory":"192Mi"}}Initial resources, based on a 40node network
nodeSelectorobject{}
tolerationslist[]
affinityobject{}
networkPolicyobject{"cilium":{"egress":[],"ingress":[{"toPorts":[{"ports":[{"port":"http-ui"}]}]}]},"egress":[],"enabled":false,"flavor":"kubernetes","ingress":[{"ports":[{"port":"http-ui","protocol":"TCP"}]}]}Define network policy targeting managed pod
networkPolicy.ciliumobject{"egress":[],"ingress":[{"toPorts":[{"ports":[{"port":"http-ui"}]}]}]}If cilium flavor is defined, fill definition here
networkPolicy.flavorstring"kubernetes"Choose policy flavor in 'kubernetes', 'cilium'
networkPolicy.ingresslist[{"ports":[{"port":"http-ui","protocol":"TCP"}]}]If kubernetes flavor is defined, fill definition here
serviceMonitorobject{"labels":{},"namespaceSelector":{},"promExporter":{"enabled":true,"endpointAdditions":{},"interval":"30s"},"ui":{"enabled":false,"endpointAdditions":{},"interval":"30s"}}Support Prometheus ServiceMonitor
serviceMonitor.namespaceSelectorobject{}namespace selector
serviceMonitor.promExporter.enabledbooltruenot required, placeholder for future changes. Currently controled under promExporter.enabled
serviceMonitor.promExporter.intervalstring"30s"interval
serviceMonitor.promExporter.endpointAdditionsobject{}endpoint additions - add endpoint modifications
serviceMonitor.ui.enabledboolfalseEnable Zwave-js-ui metrics endpoint pulling
serviceMonitor.ui.intervalstring"30s"interval
serviceMonitor.ui.endpointAdditionsobject{}endpoint additions - add endpoint modifications
promExporterobject{"enabled":false,"health":{"livenessProbe":{"initialDelaySeconds":15,"path":"/healthz","periodSeconds":30},"readinessProbe":{"initialDelaySeconds":5,"path":"/healthz","periodSeconds":30},"startupProbe":{"initialDelaySeconds":5,"path":"/healthz","periodSeconds":30}},"image":{"pullPolicy":"IfNotPresent","repository":"ghcr.io/k8sonlab/zwave-js-prom-exporter","tag":"0.5.0"},"port":9090,"resources":{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}}Prometheus Exporter Sidecar
promExporter.enabledboolfalseenable Prometheus Exporter sidecar
promExporter.portint9090port for the exporter
promExporter.healthobject{"livenessProbe":{"initialDelaySeconds":15,"path":"/healthz","periodSeconds":30},"readinessProbe":{"initialDelaySeconds":5,"path":"/healthz","periodSeconds":30},"startupProbe":{"initialDelaySeconds":5,"path":"/healthz","periodSeconds":30}}probes for the sidecar
promExporter.resourcesobject{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}resources for the sidecar

Deploy zwave-js-ui with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has zwave-js-ui on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartzwave-js-ui is pinned at v0.10.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply