homeassistant config map
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user