Skip to content

Commit

Permalink
remove leader-election for webhook manager
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
  • Loading branch information
mars1024 committed Feb 20, 2020
1 parent 232251b commit 657b5a2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/webhook/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ func main() {

mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
LeaderElection: true,
LeaderElectionNamespace: os.Getenv("KUBE_NAMESPACE"),
LeaderElectionID: os.Getenv("POD_NAME"),
// disable metrics to avoid port conflict
MetricsBindAddress: "0",
})
Expand Down

0 comments on commit 657b5a2

Please sign in to comment.