diff --git a/main.go b/main.go index ca8885a..5f0883b 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ func init() { func main() { var metricsAddr string var enableLeaderElection bool - flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.") + flag.StringVar(&metricsAddr, "metrics-addr", ":0", "The address the metric endpoint binds to.") flag.BoolVar(&enableLeaderElection, "enable-leader-election", false, "Enable leader election for controller manager. "+ "Enabling this will ensure there is only one active controller manager.")