image:
  repository: tccr.io/truecharts/deconz
  tag: v2.17.01@sha256:1f3f5de03955000de7d0d9f29902b5d2e174db2e98d46cc1c744324b4678607b
  pullPolicy: IfNotPresent

securityContext:
  readOnlyRootFilesystem: false
  runAsNonRoot: false

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0

secretEnv:
  DECONZ_VNC_PASSWORD: ""

env:
  # -- Override the location where deCONZ looks for the RaspBee/Conbee device.
  DECONZ_DEVICE: ""  # /dev/ttyUSB0
  DECONZ_UPNP: 0
  DECONZ_START_VERBOSE: 0
  # -- Enable VNC access to the container to view the deCONZ ZigBee mesh
  DECONZ_VNC_MODE: 1
  DECONZ_WEB_PORT: "{{ .Values.service.main.ports.main.port }}"
  DECONZ_WS_PORT: "{{ .Values.service.websocket.ports.websocket.port }}"
  DECONZ_VNC_PORT: "{{ .Values.service.vnc.ports.vnc.port }}"
  DECONZ_UID: "{{ .Values.security.PUID }}"
  DECONZ_GID: "{{ .Values.podSecurityContext.fsGroup }}"

service:
  main:
    ports:
      main:
        port: 10008
  websocket:
    enabled: true
    ports:
      websocket:
        enabled: true
        port: 10001
  vnc:
    enabled: true
    ports:
      vnc:
        enabled: true
        port: 10002

persistence:
  config:
    enabled: true
    mountPath: "/opt/deCONZ"

# -- Affinity constraint rules to place the Pod on a specific node.
# [[ref]](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)
affinity: {}
#   nodeAffinity:
#     requiredDuringSchedulingIgnoredDuringExecution:
#       nodeSelectorTerms:
#       - matchExpressions:
#         - key: app
#           operator: In
#           values:
#           - zigbee-controller
