fix: set dnsPolicy to ClusterFirstWithHostNet
Some checks failed
/ deploy-to-homesrv01 (push) Has been cancelled
Some checks failed
/ deploy-to-homesrv01 (push) Has been cancelled
This commit is contained in:
@@ -35,6 +35,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: home-assistant
|
app: home-assistant
|
||||||
spec:
|
spec:
|
||||||
|
dnsPolicy: ClusterFirstWithHostNet # ensures pod uses cluster DNS (CoreDNS) for service discovery even with host networking
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
# delays start so host have time to start on low memory resources
|
# delays start so host have time to start on low memory resources
|
||||||
initContainers:
|
initContainers:
|
||||||
@@ -44,6 +45,9 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: home-assistant
|
- name: home-assistant
|
||||||
image: "homeassistant/home-assistant"
|
image: "homeassistant/home-assistant"
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
value: Europe/Lisbon # set timezone
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: home-assistant-config
|
- name: home-assistant-config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
|||||||
Reference in New Issue
Block a user