Disable metrics endpoint in controller-runtime
Controller-runtime is starting a metrics endpoint on port 8080
by default, and prevents the speaker from starting if the port
is in use. Disabling the metrics endpoint in controller-runtime
for the time, we might want to enable these metrics in the future.
@@ -129,6 +129,7 @@ func New(cfg *Config) (*Client, error) {
Scheme: scheme,
Port: 9443, // TODO port only with controller, for webhooks
LeaderElection: false,
+ MetricsBindAddress: "0", // Disable metrics endpoint of controller manager
NewCache: cache.BuilderWithOptions(cache.Options{
SelectorsByObject: map[client.Object]cache.ObjectSelector{
&metallbv1beta1.AddressPool{}: namespaceSelector,
