Skip to content

Commit

Permalink
ServiceMonitor: Specify monitored namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed Jul 7, 2023
1 parent c507d82 commit 42cd1b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 3.5.16
version: 3.5.17
appVersion: 27.0.0
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
3 changes: 3 additions & 0 deletions charts/nextcloud/templates/metrics-servicemonitor.yaml
Expand Up @@ -24,6 +24,9 @@ spec:
app.kubernetes.io/name: {{ include "nextcloud.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: metrics
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
endpoints:
- port: metrics
path: "/"
Expand Down

0 comments on commit 42cd1b1

Please sign in to comment.