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:
|
ports:
|
||||||
- containerPort: 8123
|
- containerPort: 8123
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
- name: localtime
|
||||||
|
mountPath: /etc/localtime
|
||||||
|
readOnly: true
|
||||||
|
- name: dbus
|
||||||
|
mountPath: /run/dbus
|
||||||
|
readOnly: true
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
capabilities:
|
capabilities:
|
||||||
@@ -56,20 +64,15 @@ spec:
|
|||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
hostPath:
|
||||||
claimName: home-assistant-pvc
|
path: ./config
|
||||||
---
|
type: DirectoryOrCreate
|
||||||
apiVersion: v1
|
- name: localtime
|
||||||
kind: PersistentVolumeClaim
|
hostPath:
|
||||||
metadata:
|
path: /etc/localtime
|
||||||
name: home-assistant-pvc
|
type: File
|
||||||
labels:
|
- name: dbus
|
||||||
app: home-assistant
|
hostPath:
|
||||||
namespace: home-assistant
|
path: /run/dbus
|
||||||
spec:
|
type: Directory
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 9Gi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user