diff --git a/config/manager/deployment.yaml b/config/manager/deployment.yaml index 95dc466a..915efc44 100644 --- a/config/manager/deployment.yaml +++ b/config/manager/deployment.yaml @@ -15,7 +15,7 @@ spec: app: source-controller annotations: prometheus.io/scrape: "true" - prometheus.io/port: "9090" + prometheus.io/port: "8080" spec: terminationGracePeriodSeconds: 10 containers: @@ -26,9 +26,9 @@ spec: allowPrivilegeEscalation: false readOnlyRootFilesystem: true ports: - - containerPort: 8080 - name: http - containerPort: 9090 + name: http + - containerPort: 8080 name: http-prom args: - --enable-leader-election diff --git a/main.go b/main.go index 72ba800c..37dbfff8 100644 --- a/main.go +++ b/main.go @@ -68,13 +68,13 @@ func main() { 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.BoolVar(&enableLeaderElection, "enable-leader-election", false, "Enable leader election for controller manager. "+ "Enabling this will ensure there is only one active controller manager.") 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.BoolVar(&logJSON, "log-json", false, "Set logging to JSON format.")