I’m using Kubernetes for my Home Assistant, and it seems to be running smoothly. When I port-forward to port 8080, I can see the frontend. However, when I use a domain, I get a 404 error.
Everything seems to be running smoothly with Kubernetes for Home Assistant. When I port-forward to port 8080, I can access the frontend. However, when I use a domain, I get a “400 bad request” error.
I’m using Argo CD to deploy a Helm chart into my cluster like this. I’ve experimented with different configurations, but haven’t managed to see the welcome screen when using a domain name only.
Too little information, I’m afraid.
As we don’t know what helm chart you’re using, it would be good to post the “expansion” of it, i.e. a helm template
Probably an ingress issue, though, but we don’t know what is meant by “when I use a domain”, technically.
domain is mean when i use a ingress domain DNS name its not working, when i just use a port-forwarding port as localhost directly to the pod its works fine.
and yes its for sure something with the ingress part, but what
But it have a services created if you after this setup use kubectl get svc -n home-assistant its will show you a service, and here is what my challenges are I’m use Gateway API to as ingress to share the same external IP in my cluster.
I don’t know Gateway API, but according to the doc, it should be the service name, here. When deploying through helm, my service name is <helm release-name>-home-assistant.
What’s the actual output of kubectl get svc -n home-assistant ?
Note that I’m assuming you run everything in the same namespace, here.
i can see i hit the pod, but did not get access, so i’m trying to fixvthe proxie issue right now,
│ s6-rc: info: service s6rc-oneshot-runner: starting │
│ s6-rc: info: service s6rc-oneshot-runner successfully started ││ s6-rc: info: service fix-attrs: starting │
│ s6-rc: info: service fix-attrs successfully started │
│ s6-rc: info: service legacy-cont-init: starting │
│ s6-rc: info: service legacy-cont-init successfully started │
│ s6-rc: info: service legacy-services: starting │
│ services-up: info: copying legacy longrun home-assistant (no readiness notification) │
│ s6-rc: info: service legacy-services successfully started │
│ 2025-03-16 16:03:10.071 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly │
│ 2025-03-16 16:03:10.085 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=1 from 2025-03-16 07:35:51.952302) │
│ 2025-03-16 16:03:36.834 ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 10.0.0.202, but your HTTP integration is not set-up for reverse proxies │
│ 2025-03-16 16:05:01.868 ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 10.0.0.202, but your HTTP integration is not set-up for reverse proxies
I have found the fix, its the way the helm chart are build on, and it’s not out of the box support Gateway API, so i shoud create the template config at my self first, when i deploy it, and now its working as i expect,