fix(chart): ensure that the servicemonitor only selects its own namespace

This commit is contained in:
Mitch Hulscher
2021-03-01 14:59:19 +01:00
parent e43ebfa5bf
commit 2b603bedcd

View File

@@ -10,6 +10,9 @@ spec:
- path: /metrics
port: http
interval: {{ .Values.serviceMonitor.interval }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
selector:
matchLabels:
{{- include "podinfo.selectorLabels" . | nindent 6 }}