rancher-charts/charts/rancher-cis-benchmark/3.0.0/templates/alertingrule.yaml

15 lines
313 B
YAML
Raw Normal View History

2022-11-09 09:30:02 +00:00
{{- if .Values.alerts.enabled -}}
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: rancher-cis-pod-monitor
namespace: {{ template "cis.namespace" . }}
spec:
selector:
matchLabels:
cis.cattle.io/operator: cis-operator
podMetricsEndpoints:
- port: cismetrics
{{- end }}