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/kar-controllers/app/options/options.go
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,6 @@ import (
21
21
"os"
22
22
"strconv"
23
23
"strings"
24
-
25
-
klog "k8s.io/klog/v2"
26
24
)
27
25
28
26
// ServerOption is the main context object for the controller manager.
@@ -40,9 +38,9 @@ type ServerOption struct {
40
38
HeadOfLineHoldingTimeint
41
39
QuotaEnabledbool// Controller is to evaluate quota per request
42
40
QuotaRestURLstring
43
-
HealthProbeListenPortint
41
+
HealthProbeListenPortint
44
42
DispatchResourceReservationTimeoutint64
45
-
MetricsListenPortint
43
+
MetricsListenPortint
46
44
}
47
45
48
46
// NewServerOption creates a new CMServer with a default config.
@@ -68,8 +66,8 @@ func (s *ServerOption) AddFlags(fs *flag.FlagSet) {
68
66
fs.StringVar(&s.QuotaRestURL, "quotaURL", s.QuotaRestURL, "URL for ReST quota management. Default is none.")
69
67
fs.IntVar(&s.SecurePort, "secure-port", 6443, "The port on which to serve secured, authenticated access for metrics.")
70
68
fs.IntVar(&s.HealthProbeListenPort, "healthProbeListenPort", 8081, "Listen port for health probes. Defaults to ':8081'")
71
-
// using port 8083 for metrics as 8082 is used by `custom-metrics-apiserver`
72
-
fs.IntVar(&s.MetricsListenPort, "metricsListenPort", 8083, "Listen port for metrics. Defaults to ':8083'")
69
+
// using port 9090 for metrics as 8082 is used by `custom-metrics-apiserver`
70
+
fs.IntVar(&s.MetricsListenPort, "metricsListenPort", 9090, "Listen port for metrics. Defaults to ':9090'")
73
71
fs.Int64Var(&s.DispatchResourceReservationTimeout, "dispatchResourceReservationTimeout", s.DispatchResourceReservationTimeout, "Resource reservation timeout for pods to be created once AppWrapper is dispatched, in millisecond. Defaults to '300000', 5 minutes")
0 commit comments