Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bluetooth in Home Assistant on Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: homeassistant
name: homeassistant
namespace: homeassistant
spec:
replicas: 1
selector:
matchLabels:
app: homeassistant
template:
metadata:
annotations:
apps.kruise.io/container-launch-priority: Ordered
labels:
app: homeassistant
spec:
nodeSelector:
arkane-systems.lan/bluez: "true"
volumes:
- name: ha-mysql-storage
hostPath:
path: /opt/ha-mysql
type: DirectoryOrCreate
- name: ha-storage
nfs:
server: mnemosyne.arkane-systems.lan
path: "/swarm/harmony/homeassistant/ha"
- name: ha-media
nfs:
server: mnemosyne.arkane-systems.lan
path: "/Media"
- name: dbus
hostPath:
path: "/var/run/dbus"
containers:
- image: mysql:latest
name: mysql
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-recorder-pass
key: password
ports:
- name: mysql
containerPort: 3306
protocol: TCP
volumeMounts:
- name: ha-mysql-storage
mountPath: /var/lib/mysql
- image: homeassistant/home-assistant:2022.8.0
name: home-assistant
volumeMounts:
- mountPath: "/config"
name: ha-storage
- mountPath: "/media"
name: ha-media
- mountPath: "/var/run/dbus"
name: dbus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment