k8s-deployment/values/common/values.service-monitor.yaml
2024-07-13 22:21:59 +02:00

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 }}