65 lines
1.5 KiB
YAML
65 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: homeassistant
|
|
labels:
|
|
app: homeassistant
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: homeassistant
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: homeassistant
|
|
spec:
|
|
containers:
|
|
- name: homeassistant
|
|
image: docker.io/homeassistant/home-assistant:2024.4
|
|
env:
|
|
- name: DISABLE_JEMALLOC
|
|
value: "true"
|
|
command:
|
|
- nsenter
|
|
- --net=/rootns/net
|
|
- --
|
|
- /init
|
|
ports:
|
|
- containerPort: 8123
|
|
resources:
|
|
limits:
|
|
cpu: "800m"
|
|
memory: 512Mi
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: data
|
|
- 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
|
|
- name: dbus
|
|
hostPath:
|
|
path: /run/dbus
|
|
- name: rootns
|
|
hostPath:
|
|
path: /proc/1/ns/
|