Skip to content

Instantly share code, notes, and snippets.

@LukeChannings
Created May 10, 2020 14:56
Show Gist options
  • Save LukeChannings/4f5f6434154e63af1504361de6066a59 to your computer and use it in GitHub Desktop.
Save LukeChannings/4f5f6434154e63af1504361de6066a59 to your computer and use it in GitHub Desktop.
dconz on kubernetes

This manifest will run dconz on a kubernetes cluster and map a CONBEE 2 stick to the container. It's useful if you need to update the ConBee firmware and don't have Docker running directly on the host.

Update the nodeSelector and dconzrc hostPath to your needs.

---
apiVersion: v1
kind: Namespace
metadata:
name: dconz
---
kind: Pod
apiVersion: v1
metadata:
name: dconz
namespace: dconz
spec:
containers:
- name: dconz
image: marthoc/deconz
tty: true
stdin: true
command: ["/bin/sh"]
securityContext:
privileged: true
env:
- name: DECONZ_DEVICE
value: /dev/ttyACM0
volumeMounts:
- name: conbee
mountPath: /dev/ttyACM0
- name: dconzrc
mountPath: /root/.local/share/dresden-elektronik/deCONZ
- name: localtime
mountPath: /etc/localtime
readOnly: true
volumes:
- name: conbee
hostPath:
path: /dev/ttyACM0
- name: dconzrc
hostPath:
path: /home/luke/.local/share/dresden-elektronik/deCONZ
type: DirectoryOrCreate
- name: localtime
hostPath:
path: /etc/localtime
restartPolicy: Always
nodeSelector:
kubernetes.io/arch: arm64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment