Guten Tag,
leider kann ich die api bei meinem HA im Kubernetes-Cluster nicht erreichen.
curl \
-H "Authorization: Bearer vsJxxxxx.xxxxx.xxxxx_xxxxxcN" \
-H "Content-Type: application/json" \
http://homeassistant.domain.lokal:8123/api
curl: (7) Failed to connect to homeassistant.domain.lokal port 8123 after 3049 ms: Could not connect to server
curl \
-H "Authorization: Bearer vsJxxxxx.xxxxx.xxxxx_xxxxxcN" \
-H "Content-Type: application/json" \
http://homeassistant.domain.lokal/api
404: Not Found%
curl \
-H "Authorization: Bearer vsJxxxxx.xxxxx.xxxxx_xxxxxcN" \
-H "Content-Type: application/json" \
http://homeassistant.domain.lokal
<!DOCTYPE html><html><head><title>Home Assistant</title><meta charset="utf-8"><link rel="manifest" href="/manifest.json" crossorigin="use-credentials">........./core.L51L-TyUzRQ.js",!0),_ls("/frontend_es5/app.RkfJfYDyXHM.js",!0))</script><script>if (!window.latestJS) {}</script></body></html>%
Muss noch in HomeAssistant noch etwas eingestellt werden oder noch ein anderer Port -ausser 8123- exportiert werden?
Hier noch der (wohl) entscheidende Teil meiner Konfiguration:
service:
main:
controller: homeassistant
ports:
http:
port: 8123
ingress:
main:
enabled: true
className: nginx
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 1G
hosts:
- host: homeassistant.domain.lokal
paths:
- path: /
pathType: Prefix
service:
identifier: main
port: http