Skip to content

Commit

Permalink
Disable metrics default behaviour (#625)
Browse files Browse the repository at this point in the history
By default the controller-runtime metrics will start up at
port 8080 for handler pod this is a problem since it's operating
on host networking so it's opening port 8080 directly at node, let's
just disable it and think about a solution in in the future in case
metrics are really needed.

Signed-off-by: Quique Llorente <[email protected]>
  • Loading branch information
qinqon authored Nov 11, 2020
1 parent a0d3d56 commit 8de6a02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ func main() {
}

mgrOptions := manager.Options{
Namespace: namespace,
MapperProvider: apiutil.NewDiscoveryRESTMapper,
Namespace: namespace,
MapperProvider: apiutil.NewDiscoveryRESTMapper,
MetricsBindAddress: "0", // disable metrics
}

// We need to add LeaerElection for the webhook
Expand Down

0 comments on commit 8de6a02

Please sign in to comment.