You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/controller/main.go
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ import (
23
23
"fmt"
24
24
"net"
25
25
"net/http"
26
+
"net/http/pprof"
26
27
"os"
27
28
"reflect"
28
29
"strings"
@@ -71,6 +72,7 @@ var (
71
72
kubeconfigstring
72
73
clusterDNSIPsstring
73
74
listenAddressstring
75
+
profilingbool
74
76
namestring
75
77
joinClusterTimeoutstring
76
78
workerCountint
@@ -165,6 +167,7 @@ func main() {
165
167
flag.StringVar(&listenAddress, "internal-listen-address", "127.0.0.1:8085", "The address on which the http server will listen on. The server exposes metrics on /metrics, liveness check on /live and readiness check on /ready")
166
168
flag.StringVar(&name, "name", "", "When set, the controller will only process machines with the label \"machine.k8s.io/controller\": name")
167
169
flag.StringVar(&joinClusterTimeout, "join-cluster-timeout", "", "when set, machines that have an owner and do not join the cluster within the configured duration will be deleted, so the owner re-creats them")
170
+
flag.BoolVar(&profiling, "enable-profiling", false, "when set, enables the endpoints on the http server under /debug/pprof/")
0 commit comments