Skip to content

Commit

Permalink
fix: metrics endpoint not accesible from remote hosts (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikouaj authored Jun 11, 2024
1 parent fd4b614 commit f36dcea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions config/default/manager_config_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ spec:
spec:
containers:
- name: manager
ports:
- containerPort: 8080
name: metrics
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: "LEADER_ELECTION"
value: "true"
- name: METRICS_PROBE_BIND_ADDR
value: "127.0.0.1:8080"
2 changes: 1 addition & 1 deletion config/prometheus/gmp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ spec:
matchLabels:
control-plane: controller-manager
endpoints:
- port: 8080
- port: metrics
interval: 30s
2 changes: 1 addition & 1 deletion config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ metadata:
namespace: system
spec:
endpoints:
- targetPort: 8080
- port: metrics
selector:
matchLabels:
control-plane: controller-manager

0 comments on commit f36dcea

Please sign in to comment.