Change ports: 8080 for metrics and 9090 for storage
This commit is contained in:
parent
6f89f2d4c5
commit
c9681ae949
|
@ -15,7 +15,7 @@ spec:
|
||||||
app: source-controller
|
app: source-controller
|
||||||
annotations:
|
annotations:
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: "9090"
|
prometheus.io/port: "8080"
|
||||||
spec:
|
spec:
|
||||||
terminationGracePeriodSeconds: 10
|
terminationGracePeriodSeconds: 10
|
||||||
containers:
|
containers:
|
||||||
|
@ -26,9 +26,9 @@ spec:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
|
||||||
name: http
|
|
||||||
- containerPort: 9090
|
- containerPort: 9090
|
||||||
|
name: http
|
||||||
|
- containerPort: 8080
|
||||||
name: http-prom
|
name: http-prom
|
||||||
args:
|
args:
|
||||||
- --enable-leader-election
|
- --enable-leader-election
|
||||||
|
|
4
main.go
4
main.go
|
@ -68,13 +68,13 @@ func main() {
|
||||||
logJSON bool
|
logJSON bool
|
||||||
)
|
)
|
||||||
|
|
||||||
flag.StringVar(&metricsAddr, "metrics-addr", ":9090", "The address the metric endpoint binds to.")
|
flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
|
||||||
flag.StringVar(&eventsAddr, "events-addr", "", "The address of the events receiver.")
|
flag.StringVar(&eventsAddr, "events-addr", "", "The address of the events receiver.")
|
||||||
flag.BoolVar(&enableLeaderElection, "enable-leader-election", false,
|
flag.BoolVar(&enableLeaderElection, "enable-leader-election", false,
|
||||||
"Enable leader election for controller manager. "+
|
"Enable leader election for controller manager. "+
|
||||||
"Enabling this will ensure there is only one active controller manager.")
|
"Enabling this will ensure there is only one active controller manager.")
|
||||||
flag.StringVar(&storagePath, "storage-path", "", "The local storage path.")
|
flag.StringVar(&storagePath, "storage-path", "", "The local storage path.")
|
||||||
flag.StringVar(&storageAddr, "storage-addr", ":8080", "The address the static file server binds to.")
|
flag.StringVar(&storageAddr, "storage-addr", ":9090", "The address the static file server binds to.")
|
||||||
flag.IntVar(&concurrent, "concurrent", 2, "The number of concurrent reconciles per controller.")
|
flag.IntVar(&concurrent, "concurrent", 2, "The number of concurrent reconciles per controller.")
|
||||||
flag.BoolVar(&logJSON, "log-json", false, "Set logging to JSON format.")
|
flag.BoolVar(&logJSON, "log-json", false, "Set logging to JSON format.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue