configure home assistant
This commit is contained in:
4
homeassistant/config/configuration.yaml
Normal file
4
homeassistant/config/configuration.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
http:
|
||||
use_x_forwarded_for: true
|
||||
trusted_proxies:
|
||||
- 10.88.88.0/24
|
||||
@@ -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:
|
||||
@@ -57,19 +65,14 @@ spec:
|
||||
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
|
||||
hostPath:
|
||||
path: ./config
|
||||
type: DirectoryOrCreate
|
||||
- name: localtime
|
||||
hostPath:
|
||||
path: /etc/localtime
|
||||
type: File
|
||||
- name: dbus
|
||||
hostPath:
|
||||
path: /run/dbus
|
||||
type: Directory
|
||||
|
||||
Reference in New Issue
Block a user