Skip to content

Commit 02798fd

Browse files
authored
Merge pull request #5793 from bryan-cox/5601
fix(observability): configure ServiceMonitor for ASO secure metrics authentication
2 parents 24059e1 + 2b042f0 commit 02798fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hack/observability/prometheus/resources/prometheus.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ spec:
105105
endpoints:
106106
- path: /metrics
107107
port: metrics
108-
scheme: http
108+
scheme: https
109+
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
110+
tlsConfig:
111+
insecureSkipVerify: true
109112
selector:
110113
matchLabels:
111114
control-plane: controller-manager

0 commit comments

Comments
 (0)