Skip to content

Commit

Permalink
Set Metrics.BindAddress to 0 to disable metrics server for control-…
Browse files Browse the repository at this point in the history
…controller (#257)
  • Loading branch information
SimonKienzler authored Oct 23, 2023
1 parent 7a57f46 commit 1b535d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/yawol-cloud-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ func main() {
*infrastructureDefaults.Namespace: {},
},
},
Metrics: server.Options{
BindAddress: "0",
},
LeaderElection: controlEnableLeaderElection,
LeaderElectionReleaseOnCancel: true,
LeaderElectionID: "4c878ae2.stackit.cloud",
Expand Down

0 comments on commit 1b535d3

Please sign in to comment.