17 lines
370 B
YAML
17 lines
370 B
YAML
|
---
|
||
|
service-monitor:
|
||
|
templates:
|
||
|
- |
|
||
|
{{ range .Values.service-monitor.resources }}
|
||
|
apiVersion: monitoring.coreos.com/v1
|
||
|
kind: ServiceMonitor
|
||
|
metadata:
|
||
|
name: {{ .name }}
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: {{ .label.app }}
|
||
|
endpoints:
|
||
|
- port: {{ .endpoints.port }}
|
||
|
{{ end }}
|