Skip to content

Commit

Permalink
Disable metrics to avoid pod collisions
Browse files Browse the repository at this point in the history
Disable metrics to avoid pod collisions. This was enable by default it https://github.com/kubernetes-sigs/controller-runtime/pull/510/files
  • Loading branch information
enxebre committed Oct 3, 2019
1 parent 7dfe8ba commit 60d9cab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func main() {
syncPeriod := 10 * time.Minute
opts := manager.Options{
SyncPeriod: &syncPeriod,
// Disable metrics serving
MetricsBindAddress: "0",
}
if *watchNamespace != "" {
opts.Namespace = *watchNamespace
Expand Down

0 comments on commit 60d9cab

Please sign in to comment.