[v2] prometheus and health checks listen on localhost instead of anyhost #1359
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Bug Description
When started with
"--prometheus
and--health-check
, the HTTP server listens for requests on localhost, but it should listen on anyhost. Otherwise, it cannon be accessed using the Pod IP (from Prometheus, kubelet, and Istio).How to reproduce
--health-check
debug
and runcurl localhost:9090/readiness
andcurl <pod IP>:9090/readiness
. The latter won't work.Environment
EDIT: I can open a pull request if you want. I tested it, and it worked by replacing
localhost
with0.0.0.0
in the HTTP server.The text was updated successfully, but these errors were encountered: