-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added service monitor to the chart
- Loading branch information
Jeremy Facchetti
committed
Nov 17, 2023
1 parent
3542ff2
commit 1eaaafa
Showing
8 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{- if .Values.monitoring.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ .Release.Name }} | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: vcluster | ||
release: "{{ .Release.Name }}" | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
heritage: "{{ .Release.Service }}" | ||
endpoints: | ||
- interval: 30s | ||
port: https | ||
path: /metrics | ||
scheme: https | ||
tlsConfig: | ||
ca: | ||
secret: | ||
name: vc-{{ .Release.Name }} | ||
key: certificate-authority | ||
cert: | ||
secret: | ||
name: vc-{{ .Release.Name }} | ||
key: client-certificate | ||
keySecret: | ||
name: vc-{{ .Release.Name }} | ||
key: client-key | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{- if .Values.monitoring.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ .Release.Name }} | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: vcluster | ||
release: "{{ .Release.Name }}" | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
heritage: "{{ .Release.Service }}" | ||
endpoints: | ||
- interval: 30s | ||
port: https | ||
path: /metrics | ||
scheme: https | ||
tlsConfig: | ||
ca: | ||
secret: | ||
name: vc-{{ .Release.Name }} | ||
key: certificate-authority | ||
cert: | ||
secret: | ||
name: vc-{{ .Release.Name }} | ||
key: client-certificate | ||
keySecret: | ||
name: vc-{{ .Release.Name }} | ||
key: client-key | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{- if .Values.monitoring.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ .Release.Name }} | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: vcluster | ||
release: "{{ .Release.Name }}" | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
heritage: "{{ .Release.Service }}" | ||
endpoints: | ||
- interval: 30s | ||
port: https | ||
path: /metrics | ||
scheme: https | ||
tlsConfig: | ||
ca: | ||
secret: | ||
name: vc-{{ .Release.Name }} | ||
key: certificate-authority | ||
cert: | ||
secret: | ||
name: vc-{{ .Release.Name }} | ||
key: client-certificate | ||
keySecret: | ||
name: vc-{{ .Release.Name }} | ||
key: client-key | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{- if .Values.monitoring.serviceMonitor.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ .Release.Name }} | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: vcluster | ||
release: "{{ .Release.Name }}" | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
heritage: "{{ .Release.Service }}" | ||
endpoints: | ||
- interval: 30s | ||
port: https | ||
path: /metrics | ||
scheme: https | ||
tlsConfig: | ||
ca: | ||
secret: | ||
name: vc-{{ .Release.Name }} | ||
key: certificate-authority | ||
cert: | ||
secret: | ||
name: vc-{{ .Release.Name }} | ||
key: client-certificate | ||
keySecret: | ||
name: vc-{{ .Release.Name }} | ||
key: client-key | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters