From 3400962877fc05b944f04390583e072eeec2af05 Mon Sep 17 00:00:00 2001 From: Nathan Dorsey <421420+glycerine102@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:04:40 -0500 Subject: [PATCH] [helm] fix s3 servicemonitor label matching (#6218) --- k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml b/k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml index 03d35cd4a..348255912 100644 --- a/k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml +++ b/k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml @@ -26,8 +26,8 @@ spec: scrapeTimeout: 5s selector: matchLabels: - app: {{ template "seaweedfs.name" . }} - component: s3 + app.kubernetes.io/name: {{ template "seaweedfs.name" . }} + app.kubernetes.io/component: s3 {{- end }} {{- end }} {{- end }}