Change metrics port to 8080
Use same port as source/helm/notification controllers
This commit is contained in:
parent
75879d11f9
commit
e3d437c3f7
|
|
@ -15,7 +15,7 @@ spec:
|
||||||
app: kustomize-controller
|
app: kustomize-controller
|
||||||
annotations:
|
annotations:
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: "true"
|
||||||
prometheus.io/port: "8282"
|
prometheus.io/port: "8080"
|
||||||
spec:
|
spec:
|
||||||
terminationGracePeriodSeconds: 10
|
terminationGracePeriodSeconds: 10
|
||||||
containers:
|
containers:
|
||||||
|
|
@ -26,7 +26,7 @@ spec:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8282
|
- containerPort: 8080
|
||||||
name: http-prom
|
name: http-prom
|
||||||
env:
|
env:
|
||||||
- name: RUNTIME_NAMESPACE
|
- name: RUNTIME_NAMESPACE
|
||||||
|
|
|
||||||
2
main.go
2
main.go
|
|
@ -61,7 +61,7 @@ func main() {
|
||||||
logJSON bool
|
logJSON bool
|
||||||
)
|
)
|
||||||
|
|
||||||
flag.StringVar(&metricsAddr, "metrics-addr", ":8282", "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. "+
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue