hacks for getting bluetooth into the hass container
This commit is contained in:
parent
3650cb1ec3
commit
fc8c5788cd
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue