Beginning with Home Assistant 2024.12, it is no longer possible to use custom integrations if the container is running as an unprivileged user. Fortunately, it can be "tricked" by running as root in an unprivileged user namespace. https://github.com/blakeblackshear/frigate-hass-integration/issues/762 https://github.com/home-assistant/core/issues/132336
86 lines
2.0 KiB
YAML
86 lines
2.0 KiB
YAML
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: home-assistant
|
|
app.kubernetes.io/name: home-assistant
|
|
app.kubernetes.io/part-of: home-assistant
|
|
name: home-assistant
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 60Gi
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: home-assistant
|
|
app.kubernetes.io/name: home-assistant
|
|
app.kubernetes.io/part-of: home-assistant
|
|
name: home-assistant
|
|
spec:
|
|
ports:
|
|
- port: 8123
|
|
name: http
|
|
selector:
|
|
app.kubernetes.io/component: home-assistant
|
|
app.kubernetes.io/name: home-assistant
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: home-assistant
|
|
app.kubernetes.io/name: home-assistant
|
|
app.kubernetes.io/part-of: home-assistant
|
|
name: home-assistant
|
|
spec:
|
|
serviceName: home-assistant
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: home-assistant
|
|
app.kubernetes.io/name: home-assistant
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: home-assistant
|
|
app.kubernetes.io/name: home-assistant
|
|
app.kubernetes.io/part-of: home-assistant
|
|
spec:
|
|
containers:
|
|
- name: home-assistant
|
|
image: ghcr.io/home-assistant/home-assistant:2023.10.3
|
|
env:
|
|
- name: TZ
|
|
value: America/Chicago
|
|
ports:
|
|
- containerPort: 8123
|
|
name: http
|
|
readinessProbe: &probe
|
|
httpGet:
|
|
port: 8123
|
|
path: /
|
|
failureThreshold: 3
|
|
periodSeconds: 60
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
startupProbe:
|
|
<<: *probe
|
|
failureThreshold: 300
|
|
periodSeconds: 3
|
|
initialDelaySeconds: 3
|
|
volumeMounts:
|
|
- name: home-assistant-data
|
|
mountPath: /config
|
|
subPath: data
|
|
hostUsers: false
|
|
volumes:
|
|
- name: home-assistant-data
|
|
persistentVolumeClaim:
|
|
claimName: home-assistant
|