2025-11-02 18:13:46 +01:00
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Namespace
|
|
|
|
|
metadata:
|
|
|
|
|
name: home-assistant
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
|
|
|
|
namespace: home-assistant
|
|
|
|
|
name: home-assistant
|
|
|
|
|
spec:
|
|
|
|
|
selector:
|
|
|
|
|
app: home-assistant
|
|
|
|
|
type: ClusterIP
|
|
|
|
|
ports:
|
|
|
|
|
- name: http
|
|
|
|
|
protocol: TCP
|
|
|
|
|
port: 80
|
|
|
|
|
targetPort: 8123
|
|
|
|
|
---
|
2026-01-28 00:11:26 +01:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
|
|
|
|
namespace: home-assistant
|
|
|
|
|
name: home-assistant-config
|
|
|
|
|
data:
|
|
|
|
|
configuration.yaml: |
|
|
|
|
|
# Loads default set of integrations
|
|
|
|
|
default_config:
|
|
|
|
|
|
|
|
|
|
http:
|
|
|
|
|
use_x_forwarded_for: true
|
|
|
|
|
trusted_proxies:
|
2026-06-26 11:58:46 +02:00
|
|
|
- 10.42.0.0/16 # k3s pod CIDR (Traefik pod lives here)
|
|
|
|
|
- 10.43.0.0/16 # k3s service CIDR
|
|
|
|
|
- 10.88.20.0/24 # node subnet (Traefik runs hostNetwork-ish, forwards from 10.88.20.11)
|
2026-01-28 00:11:26 +01:00
|
|
|
---
|
2025-11-02 18:13:46 +01:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
namespace: home-assistant
|
|
|
|
|
name: home-assistant
|
|
|
|
|
labels:
|
|
|
|
|
app: home-assistant
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: home-assistant
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: home-assistant
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: home-assistant
|
|
|
|
|
image: ghcr.io/home-assistant/home-assistant:stable
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
memory: "256Mi"
|
|
|
|
|
limits:
|
|
|
|
|
memory: "512Mi"
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8123
|
|
|
|
|
volumeMounts:
|
2026-01-27 23:41:11 +01:00
|
|
|
- name: config
|
|
|
|
|
mountPath: /config
|
2026-01-28 00:11:26 +01:00
|
|
|
- name: configuration
|
|
|
|
|
mountPath: /config/configuration.yaml
|
|
|
|
|
subPath: configuration.yaml
|
2026-01-27 23:41:11 +01:00
|
|
|
- name: localtime
|
|
|
|
|
mountPath: /etc/localtime
|
|
|
|
|
readOnly: true
|
|
|
|
|
- name: dbus
|
|
|
|
|
mountPath: /run/dbus
|
|
|
|
|
readOnly: true
|
2025-11-02 18:13:46 +01:00
|
|
|
securityContext:
|
|
|
|
|
privileged: true
|
|
|
|
|
capabilities:
|
|
|
|
|
add:
|
|
|
|
|
- NET_ADMIN
|
|
|
|
|
- NET_RAW
|
|
|
|
|
- SYS_ADMIN
|
|
|
|
|
hostNetwork: true
|
|
|
|
|
volumes:
|
2026-01-27 23:41:11 +01:00
|
|
|
- name: config
|
2026-01-27 23:56:19 +01:00
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: home-assistant-config
|
2026-01-28 00:11:26 +01:00
|
|
|
- name: configuration
|
|
|
|
|
configMap:
|
|
|
|
|
name: home-assistant-config
|
2026-01-27 23:41:11 +01:00
|
|
|
- name: localtime
|
|
|
|
|
hostPath:
|
2026-01-27 23:56:19 +01:00
|
|
|
path: /etc/localtime
|
|
|
|
|
type: File
|
2026-01-27 23:41:11 +01:00
|
|
|
- name: dbus
|
|
|
|
|
hostPath:
|
2026-01-27 23:56:19 +01:00
|
|
|
path: /run/dbus
|
2026-01-27 23:58:16 +01:00
|
|
|
type: Directory
|
2026-01-27 23:56:19 +01:00
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
|
metadata:
|
|
|
|
|
namespace: home-assistant
|
|
|
|
|
name: home-assistant-config
|
|
|
|
|
spec:
|
|
|
|
|
accessModes:
|
|
|
|
|
- ReadWriteOnce
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
storage: 5Gi
|
|
|
|
|
---
|