diff --git a/charts/whizard/Chart.yaml b/charts/whizard/Chart.yaml index 9c26b3c6..7eb330ef 100644 --- a/charts/whizard/Chart.yaml +++ b/charts/whizard/Chart.yaml @@ -14,5 +14,5 @@ maintainers: email: junhaozhang@kubesphere.io - name: junot email: junotxiang@kubesphere.io -version: 0.10.13 +version: 0.10.14 appVersion: "latest" diff --git a/charts/whizard/templates/hook.yaml b/charts/whizard/templates/hook.yaml index b859de15..e01c4a31 100644 --- a/charts/whizard/templates/hook.yaml +++ b/charts/whizard/templates/hook.yaml @@ -83,4 +83,5 @@ spec: kubectl delete rulers.monitoring.whizard.io -n {{ include "whizard.namespace" . }} --all kubectl delete stores.monitoring.whizard.io -n {{ include "whizard.namespace" . }} --all kubectl delete compactors.monitoring.whizard.io -n {{ include "whizard.namespace" . }} --all + kubectl delete storages.monitoring.whizard.io -n {{ include "whizard.namespace" . }} --all {{- end }} \ No newline at end of file diff --git a/charts/whizard/templates/serviceMonitor.yaml b/charts/whizard/templates/serviceMonitor.yaml index 48e57fb6..3763c238 100644 --- a/charts/whizard/templates/serviceMonitor.yaml +++ b/charts/whizard/templates/serviceMonitor.yaml @@ -1,4 +1,4 @@ -{{- if .Values.monitoring.enabled -}} +{{- if and (.Values.selfMonitor.enabled) (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor") -}} {{- $components := tuple "compactor" "query" "ingester" "store" "ruler" "router" }} {{- range $index, $component := $components }} --- diff --git a/charts/whizard/values.yaml b/charts/whizard/values.yaml index 4fb79eb6..4b0f3c35 100644 --- a/charts/whizard/values.yaml +++ b/charts/whizard/values.yaml @@ -32,14 +32,14 @@ hook: pullPolicy: IfNotPresent resources: limits: - cpu: 100m - memory: 128Mi + cpu: 500m + memory: 512Mi requests: cpu: 50m memory: 64Mi backoffLimit: 3 -monitoring: +selfMonitor: enabled: false ## Manages Service, Query, QueryFrontend, Router, Ingester, Store, Compactor and Ruler instances and components