homeassistant config map

This commit is contained in:
Roger Oriol
2026-01-28 00:11:26 +01:00
parent fd8e011914
commit abc4d19ebb
3 changed files with 21 additions and 150 deletions

View File

@@ -19,6 +19,21 @@ spec:
port: 80
targetPort: 8123
---
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:
- 10.88.88.0/24
---
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -49,6 +64,9 @@ spec:
volumeMounts:
- name: config
mountPath: /config
- name: configuration
mountPath: /config/configuration.yaml
subPath: configuration.yaml
- name: localtime
mountPath: /etc/localtime
readOnly: true
@@ -67,6 +85,9 @@ spec:
- name: config
persistentVolumeClaim:
claimName: home-assistant-config
- name: configuration
configMap:
name: home-assistant-config
- name: localtime
hostPath:
path: /etc/localtime