feat(kube_monitor_proxy): don't deploy if not enabled

!8
This commit is contained in:
2024-02-04 15:49:43 +09:30
parent 9c35a4d140
commit bdb3a09c2b
9 changed files with 36 additions and 2 deletions

View File

@ -1,3 +1,4 @@
{{ if .Values.nfc_monitoring.kube_monitor_proxy.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
@ -84,3 +85,5 @@ spec:
record: count:up1
- expr: count without(instance, pod, node) (up == 0)
record: count:up0
{{ end }}