fix: set dnsPolicy to ClusterFirstWithHostNet
Some checks failed
/ deploy-to-homesrv01 (push) Has been cancelled

This commit is contained in:
2025-11-16 10:15:51 +00:00
parent 0f51497688
commit 8a9c6760d5

View File

@@ -35,6 +35,7 @@ spec:
labels:
app: home-assistant
spec:
dnsPolicy: ClusterFirstWithHostNet # ensures pod uses cluster DNS (CoreDNS) for service discovery even with host networking
hostNetwork: true
# delays start so host have time to start on low memory resources
initContainers:
@@ -44,6 +45,9 @@ spec:
containers:
- name: home-assistant
image: "homeassistant/home-assistant"
env:
- name: TZ
value: Europe/Lisbon # set timezone
volumeMounts:
- name: home-assistant-config
mountPath: /config