k8s-deployment/values/common/values.service-monitor.yaml

17 lines
370 B
YAML
Raw Permalink Normal View History

2024-07-13 20:21:59 +00:00
---
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 }}