From 356aa99f7bd43a5021f571e99cf05ae0a6568a15 Mon Sep 17 00:00:00 2001 From: Roger Oriol Date: Tue, 27 Jan 2026 23:41:11 +0100 Subject: [PATCH] configure home assistant --- homeassistant/config/configuration.yaml | 4 +++ homeassistant/homeassistant.yaml | 37 +++++++++++++------------ 2 files changed, 24 insertions(+), 17 deletions(-) create mode 100644 homeassistant/config/configuration.yaml diff --git a/homeassistant/config/configuration.yaml b/homeassistant/config/configuration.yaml new file mode 100644 index 0000000..b5112c2 --- /dev/null +++ b/homeassistant/config/configuration.yaml @@ -0,0 +1,4 @@ +http: + use_x_forwarded_for: true + trusted_proxies: + - 10.88.88.0/24 diff --git a/homeassistant/homeassistant.yaml b/homeassistant/homeassistant.yaml index 3dd6ab1..8b866d6 100644 --- a/homeassistant/homeassistant.yaml +++ b/homeassistant/homeassistant.yaml @@ -47,6 +47,14 @@ spec: ports: - containerPort: 8123 volumeMounts: + - name: config + mountPath: /config + - name: localtime + mountPath: /etc/localtime + readOnly: true + - name: dbus + mountPath: /run/dbus + readOnly: true securityContext: privileged: true capabilities: @@ -56,20 +64,15 @@ spec: - SYS_ADMIN hostNetwork: true volumes: - - name: config - persistentVolumeClaim: - claimName: home-assistant-pvc ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: home-assistant-pvc - labels: - app: home-assistant - namespace: home-assistant -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 9Gi + - name: config + hostPath: + path: ./config + type: DirectoryOrCreate + - name: localtime + hostPath: + path: /etc/localtime + type: File + - name: dbus + hostPath: + path: /run/dbus + type: Directory