Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/default/manager_metrics_patch.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This patch adds the args to allow exposing the metrics endpoint using HTTPS
# This patch adds the args to allow exposing the metrics endpoint
- op: add
path: /spec/template/spec/containers/0/args/-
value: --metrics-bind-address=:8443
value: --metrics-bind-address=:8080
6 changes: 3 additions & 3 deletions config/default/metrics_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ metadata:
name: fluent-operator-metrics
spec:
ports:
- name: https
port: 8443
- name: metrics
port: 8080
protocol: TCP
targetPort: 8443
targetPort: 8080
selector:
app.kubernetes.io/component: operator
app.kubernetes.io/name: fluent-operator
2 changes: 1 addition & 1 deletion config/network-policy/allow-metrics-traffic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
matchLabels:
metrics: enabled # Only from namespaces with this label
ports:
- port: 8443
- port: 8080
protocol: TCP
4 changes: 2 additions & 2 deletions config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ metadata:
spec:
endpoints:
- path: /metrics
port: https
scheme: https # Ensure this is the name of the port that exposes HTTPS metrics
port: metrics
scheme: http # Ensure this is the name of the port that exposes metrics
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
tlsConfig:
# TODO(user): The option insecureSkipVerify: true is not recommended for production since it disables
Expand Down
8 changes: 4 additions & 4 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42984,10 +42984,10 @@ metadata:
namespace: fluent
spec:
ports:
- name: https
port: 8443
- name: metrics
port: 8080
protocol: TCP
targetPort: 8443
targetPort: 8080
selector:
app.kubernetes.io/component: operator
app.kubernetes.io/name: fluent-operator
Expand Down Expand Up @@ -43015,7 +43015,7 @@ spec:
- args:
- --leader-elect
- --health-probe-bind-address=:8081
- --metrics-bind-address=:8443
- --metrics-bind-address=:8080
command:
- /manager
env:
Expand Down