[deconz] Migrate to common v3 (#1017)

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2021-06-16 21:19:41 +02:00 committed by GitHub
parent 5cba3de4cf
commit 690639ef33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 98 additions and 65 deletions

View File

@ -1,8 +1,8 @@
apiVersion: v2 apiVersion: v2
appVersion: 2.10.03 appVersion: 2.12.01
description: deCONZ is an easy to use control software, with which you can set up and control Zigbee networks of any size without further programming effort. description: deCONZ is an easy to use control software, with which you can set up and control Zigbee networks of any size without further programming effort.
name: deconz name: deconz
version: 4.4.0 version: 5.0.0
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- deconz - deconz
@ -20,4 +20,4 @@ maintainers:
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.k8s-at-home.com repository: https://library-charts.k8s-at-home.com
version: 2.5.0 version: 3.1.1

View File

@ -1,6 +1,6 @@
# deconz # deconz
![Version: 4.4.0](https://img.shields.io/badge/Version-4.4.0-informational?style=flat-square) ![AppVersion: 2.10.03](https://img.shields.io/badge/AppVersion-2.10.03-informational?style=flat-square) ![Version: 5.0.0](https://img.shields.io/badge/Version-5.0.0-informational?style=flat-square) ![AppVersion: 2.12.01](https://img.shields.io/badge/AppVersion-2.12.01-informational?style=flat-square)
deCONZ is an easy to use control software, with which you can set up and control Zigbee networks of any size without further programming effort. deCONZ is an easy to use control software, with which you can set up and control Zigbee networks of any size without further programming effort.
@ -19,7 +19,7 @@ Kubernetes: `>=1.16.0-0`
| Repository | Name | Version | | Repository | Name | Version |
|------------|------|---------| |------------|------|---------|
| https://library-charts.k8s-at-home.com | common | 2.5.0 | | https://library-charts.k8s-at-home.com | common | 3.1.1 |
## TL;DR ## TL;DR
@ -76,23 +76,23 @@ N/A
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| env.DECONZ_VNC_MODE | int | `1` | | | affinity | object | `{}` | 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) |
| env.DECONZ_VNC_PORT | int | `5900` | | | env | object | See below | environment variables. See [image docs](https://github.com/marthoc/docker-deconz/blob/master/README.md) for more details. |
| env.DECONZ_WEB_PORT | int | `80` | | | env.DECONZ_DEVICE | string | `nil` | Override the location where deCONZ looks for the RaspBee/Conbee device. |
| env.DECONZ_WS_PORT | int | `443` | | | env.DECONZ_VNC_MODE | int | `1` | Enable VNC access to the container to view the deCONZ ZigBee mesh |
| env.TZ | string | `"UTC"` | | | env.DECONZ_VNC_PASSWORD | object | `{}` | If VNC is enabled (DECONZ_VNC_MODE=1) you can change the default password "changeme" using a Secret. |
| image.pullPolicy | string | `"IfNotPresent"` | | | env.DECONZ_VNC_PORT | int | `5900` | VNC server listen port |
| image.repository | string | `"marthoc/deconz"` | | | env.DECONZ_WEB_PORT | int | `80` | Web UI listen port |
| image.tag | string | `"amd64-2.10.03"` | | | env.DECONZ_WS_PORT | int | `443` | Websocket listen port |
| ingress.enabled | bool | `false` | | | env.TZ | string | `"UTC"` | Set the container timezone |
| persistence.config.enabled | bool | `false` | | | image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
| persistence.config.mountPath | string | `"/root/.local/share/dresden-elektronik/deCONZ"` | | | image.repository | string | `"marthoc/deconz"` | image repository |
| service.additionalPorts[0].name | string | `"websocket"` | | | image.tag | string | `"2.12.01"` | image tag |
| service.additionalPorts[0].port | int | `443` | | | ingress.main | object | See values.yaml | Enable and configure ingress settings for the chart under this key. |
| service.additionalPorts[1].name | string | `"vnc"` | | | persistence | object | See values.yaml | Configure persistence settings for the chart under this key. |
| service.additionalPorts[1].port | int | `5900` | | | persistence.usb | object | See values.yaml | Configure a hostPathMount to mount a USB device in the container. |
| service.port.port | int | `80` | | | securityContext.privileged | bool | `nil` | Privileged securityContext may be required if USB controller is accessed directly through the host machine |
| strategy.type | string | `"Recreate"` | | | service | object | See values.yaml | Configures service settings for the chart. |
## Changelog ## Changelog
@ -100,6 +100,14 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [4.0.0]
#### Changed
- **BREAKING**: Upgraded the common library dependency to version 3.1.1. This introduces several breaking changes (`service`, `ingress` and `persistence` keys have been refactored).
Be sure to check out the [library chart](https://github.com/k8s-at-home/library-charts/blob/common-3.1.1/charts/stable/common/) for the up-to-date values.
- Changed image tag to `2.12.01`.
### [3.0.0] ### [3.0.0]
#### Migration !breaking change! #### Migration !breaking change!

View File

@ -9,6 +9,14 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [5.0.0]
#### Changed
- **BREAKING**: Upgraded the common library dependency to version 3.1.1. This introduces several breaking changes (`service`, `ingress` and `persistence` keys have been refactored).
Be sure to check out the [library chart](https://github.com/k8s-at-home/library-charts/blob/common-3.1.1/charts/stable/common/) for the up-to-date values.
- Changed image tag to `2.12.01`.
### [3.0.0] ### [3.0.0]
#### Migration !breaking change! #### Migration !breaking change!

View File

@ -6,64 +6,81 @@
# #
image: image:
# -- image repository
repository: marthoc/deconz repository: marthoc/deconz
# -- image tag
tag: 2.12.01
# -- image pull policy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
tag: amd64-2.10.03
strategy: # -- environment variables. See [image docs](https://github.com/marthoc/docker-deconz/blob/master/README.md) for more details.
type: Recreate # @default -- See below
# See https://github.com/marthoc/docker-deconz/blob/master/README.md for more settings for e.g. debug.
env: env:
# -- Set the container timezone
TZ: UTC TZ: UTC
## Path to mounted device inside the container. # -- Override the location where deCONZ looks for the RaspBee/Conbee device.
# DECONZ_DEVICE: /dev/conbee DECONZ_DEVICE: # /dev/ttyUSB0
## Do not set the VNC password here directly - use a Secret, see envValueFrom below. # -- Enable VNC access to the container to view the deCONZ ZigBee mesh
# DECONZ_VNC_PASSWORD: changeme
DECONZ_VNC_MODE: 1 DECONZ_VNC_MODE: 1
# -- Web UI listen port
DECONZ_WEB_PORT: 80 DECONZ_WEB_PORT: 80
# -- Websocket listen port
DECONZ_WS_PORT: 443 DECONZ_WS_PORT: 443
# -- VNC server listen port
DECONZ_VNC_PORT: 5900 DECONZ_VNC_PORT: 5900
# -- If VNC is enabled (DECONZ_VNC_MODE=1) you can change the default password "changeme" using a Secret.
DECONZ_VNC_PASSWORD:
# envFrom:
# secretKeyRef:
# name: deconz-vnc-password
# key: password
## If VNC is enabled (DECONZ_VNC_MODE) you can change the default password "changeme" using a Secret. # -- Configures service settings for the chart.
# envValueFrom: # @default -- See values.yaml
# DECONZ_VNC_PASSWORD:
# secretKeyRef:
# name: deconz-vnc-password
# key: password
## Privileged context is required to mount devices in container using volumes.
# securityContext:
# privileged: true
## Path to device on the host.
# additionalVolumes:
# - name: conbee
# hostPath:
# path: /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_00000000-if00-port0
## Path to mounted device inside the container.
# additionalVolumeMounts:
# - name: conbee
# mountPath: /dev/conbee
## The node having the dongle attached should be labeled accordingly.
# nodeSelector:
# feature.node.kubernetes.io/custom-deconz: "true"
service: service:
port: main:
ports:
http:
port: 80 port: 80
additionalPorts: websocket:
- name: websocket enabled: true
port: 443 port: 443
- name: vnc vnc:
enabled: true
port: 5900 port: 5900
ingress: ingress:
# -- Enable and configure ingress settings for the chart under this key.
# @default -- See values.yaml
main:
enabled: false enabled: false
securityContext:
# -- (bool) Privileged securityContext may be required if USB controller is accessed directly through the host machine
privileged: # true
# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence: persistence:
config: config:
enabled: false enabled: false
mountPath: /root/.local/share/dresden-elektronik/deCONZ mountPath: /root/.local/share/dresden-elektronik/deCONZ
# -- Configure a hostPathMount to mount a USB device in the container.
# @default -- See values.yaml
usb:
enabled: false
type: hostPath
hostPath: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2400981-if00
mountPath: /dev/ttyUSB0
# -- 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