Skip to content

Commit c9681ae

Browse files
committed
Change ports: 8080 for metrics and 9090 for storage
1 parent 6f89f2d commit c9681ae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config/manager/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
app: source-controller
1616
annotations:
1717
prometheus.io/scrape: "true"
18-
prometheus.io/port: "9090"
18+
prometheus.io/port: "8080"
1919
spec:
2020
terminationGracePeriodSeconds: 10
2121
containers:
@@ -26,9 +26,9 @@ spec:
2626
allowPrivilegeEscalation: false
2727
readOnlyRootFilesystem: true
2828
ports:
29-
- containerPort: 8080
30-
name: http
3129
- containerPort: 9090
30+
name: http
31+
- containerPort: 8080
3232
name: http-prom
3333
args:
3434
- --enable-leader-election

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ func main() {
6868
logJSON bool
6969
)
7070

71-
flag.StringVar(&metricsAddr, "metrics-addr", ":9090", "The address the metric endpoint binds to.")
71+
flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")
7272
flag.StringVar(&eventsAddr, "events-addr", "", "The address of the events receiver.")
7373
flag.BoolVar(&enableLeaderElection, "enable-leader-election", false,
7474
"Enable leader election for controller manager. "+
7575
"Enabling this will ensure there is only one active controller manager.")
7676
flag.StringVar(&storagePath, "storage-path", "", "The local storage path.")
77-
flag.StringVar(&storageAddr, "storage-addr", ":8080", "The address the static file server binds to.")
77+
flag.StringVar(&storageAddr, "storage-addr", ":9090", "The address the static file server binds to.")
7878
flag.IntVar(&concurrent, "concurrent", 2, "The number of concurrent reconciles per controller.")
7979
flag.BoolVar(&logJSON, "log-json", false, "Set logging to JSON format.")
8080

0 commit comments

Comments
 (0)