stackitcloud / yawol

yawol is a Load Balancer solution for OpenStack, based on the Kubernetes controller pattern.
Apache License 2.0
42 stars 6 forks source link

Set `Metrics.BindAddress` to 0 to disable metrics server for control-controller #257

Closed SimonKienzler closed 10 months ago

SimonKienzler commented 10 months ago

If the Metrics.BindAddress is not explicitly set to 0, the controller manger starts a metrics server on the default port (8080), which causes the yawol-cloud-controller to crash:

"error": "failed to start metrics server: failed to create listener: listen tcp :8080: bind: address already in use"}

This PR reintroduces the setting to disable the metrics server completely. This was inadvertently removed in #241 and made it to main (and the latest release) undetected.