From 5823f6af1340468d9043d208af03ec26210a4675 Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Sun, 27 Aug 2023 11:27:05 +0000 Subject: [PATCH] servicemonitor supports tls client certs --- charts/redpanda/templates/servicemonitor.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/redpanda/templates/servicemonitor.yaml b/charts/redpanda/templates/servicemonitor.yaml index b5cc3c2fc9..efb7a65e21 100644 --- a/charts/redpanda/templates/servicemonitor.yaml +++ b/charts/redpanda/templates/servicemonitor.yaml @@ -38,10 +38,22 @@ spec: scheme: https tlsConfig: insecureSkipVerify: true + ca: + secret: + name: {{ template "redpanda.fullname" $ }}-default-cert + key: ca.crt + cert: + secret: + name: {{ template "redpanda.fullname" $ }}-default-cert + key: tls.crt + key: + secret: + name: {{ template "redpanda.fullname" $ }}-default-cert + key: tls.key {{- end }} selector: matchLabels: monitoring.redpanda.com/enabled: "true" app.kubernetes.io/name: {{ template "redpanda.name" . }} app.kubernetes.io/instance: {{ .Release.Name | quote }} -{{- end }} \ No newline at end of file +{{- end }}