hacks for getting bluetooth into the hass container

This commit is contained in:
Tobias Brunner 2024-03-02 22:54:34 +01:00
parent 3650cb1ec3
commit fc8c5788cd
Signed by: tobru
SSH key fingerprint: SHA256:kywVhvCA+MIxL6eBgoQa+BfC/ROJqcfD2bpy1PR6Ebk
3 changed files with 53 additions and 4 deletions

View file

@ -16,10 +16,15 @@ spec:
spec:
containers:
- name: homeassistant
image: docker.io/homeassistant/home-assistant:2024.2
image: ghcr.io/home-assistant/home-assistant:2024.2
env:
- name: DISABLE_JEMALLOC
value: "true"
command:
- nsenter
- --net=/rootns/net
- --
- /init
ports:
- containerPort: 8123
resources:
@ -32,10 +37,28 @@ spec:
- mountPath: /config/configuration.yaml
subPath: configuration.yaml
name: config
- mountPath: /run/dbus
name: dbus
readOnly: true
- name: rootns
mountPath: /rootns
securityContext:
privileged: true
capabilities:
add:
- SYS_PTRACE
- SYS_ADMIN
- NET_ADMIN
volumes:
- name: config
configMap:
name: configuration
- name: data
persistentVolumeClaim:
claimName: data
claimName: data
- name: dbus
hostPath:
path: /run/dbus
- name: rootns
hostPath:
path: /proc/1/ns/

View file

@ -17,9 +17,9 @@ spec:
pathType: Prefix
backend:
service:
name: homeassistant
name: homeassistant-headless
port:
number: 80
number: 8123
tls:
- hosts:
- home-assistant.camper.tobru.ch

View file

@ -11,3 +11,29 @@ spec:
protocol: TCP
port: 80
targetPort: 8123
---
apiVersion: v1
kind: Service
metadata:
name: homeassistant-headless
spec:
type: ClusterIP
clusterIP: None
ports:
- name: http
protocol: TCP
port: 8123
targetPort: 8123
---
apiVersion: v1
kind: Endpoints
metadata:
name: homeassistant-headless
subsets:
- addresses:
- ip: 10.42.0.1
nodeName: camperpi
ports:
- name: http
port: 8123
protocol: TCP