@@ -139,10 +139,12 @@ func main() {
139139 var metricsAddr string
140140 var enableLeaderElection bool
141141 var probeAddr string
142+ var pprofAddr string
142143 var enableHTTP2 bool
143144 flag .BoolVar (& enableHTTP2 , "enable-http2" , enableHTTP2 , "If HTTP/2 should be enabled for the metrics and webhook servers." )
144145 flag .StringVar (& metricsAddr , "metrics-bind-address" , ":8080" , "The address the metric endpoint binds to." )
145146 flag .StringVar (& probeAddr , "health-probe-bind-address" , ":8081" , "The address the probe endpoint binds to." )
147+ flag .StringVar (& pprofAddr , "pprof-bind-address" , ":8082" , "The address the pprof endpoint binds to." )
146148 flag .BoolVar (& enableLeaderElection , "leader-elect" , false ,
147149 "Enable leader election for controller manager. " +
148150 "Enabling this will ensure there is only one active controller manager." )
@@ -171,6 +173,7 @@ func main() {
171173 Metrics : metricsserver.Options {
172174 BindAddress : metricsAddr ,
173175 },
176+ PprofBindAddress : pprofAddr ,
174177 HealthProbeBindAddress : probeAddr ,
175178 LeaderElection : enableLeaderElection ,
176179 LeaderElectionID : "40ba705e.openstack.org" ,
0 commit comments