-
-
Save cerebrate/8574ac76bb9bbdc52f3cbb5ed1b307d0 to your computer and use it in GitHub Desktop.
HA: homeassistant-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: homeassistant | |
name: homeassistant | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: homeassistant | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: homeassistant | |
spec: | |
nodeSelector: | |
arkane-systems.lan/bluez: "true" | |
arkane-systems.lan/zigbee: "true" | |
volumes: | |
- name: ha-storage | |
nfs: | |
server: mnemosyne.arkane-systems.lan | |
path: "/swarm/harmony/homeassistant/ha" | |
# For Bluetooth support | |
- name: dbus | |
hostPath: | |
path: "/var/run/dbus" | |
# For Zigbee support | |
- name: skyconnect | |
hostPath: | |
path: "/dev/ttyUSB0" | |
type: CharDevice | |
initContainers: | |
- image: quay.io/stackanetes/kubernetes-entrypoint:v0.3.1 | |
name: dependency-check | |
env: | |
- name: NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: DEPENDENCY_SERVICE | |
value: 'recorderdb' | |
- name: COMMAND | |
value: echo done | |
securityContext: | |
privileged: true | |
runAsUser: 0 | |
containers: | |
- image: homeassistant/home-assistant:2023.5.3 | |
name: homeassistant | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: "/config" | |
name: ha-storage | |
# For Bluetooth support | |
- mountPath: "/var/run/dbus" | |
name: dbus | |
# For Zigbee support | |
- mountPath: "/dev/ttyUSB0" | |
name: skyconnect | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment