diff --git a/charts/kubezero/templates/metrics.yaml b/charts/kubezero/templates/metrics.yaml index 139a609..59c7ee3 100644 --- a/charts/kubezero/templates/metrics.yaml +++ b/charts/kubezero/templates/metrics.yaml @@ -1,6 +1,11 @@ {{- if index .Values "metrics" "enabled" }} -{{ template "kubezero-app.app" dict "root" . "name" "metrics" "type" "helm" }} +{{ template "kubezero-app.app" dict "root" . "name" "metrics" "type" "helm" "namespace" "monitoring"}} syncPolicy: automated: prune: true +--- +apiVersion: v1 +kind: Namespace +metadata: + name: monitoring {{- end }} diff --git a/deploy/templates/values.yaml b/deploy/templates/values.yaml index 2a71673..b462196 100644 --- a/deploy/templates/values.yaml +++ b/deploy/templates/values.yaml @@ -85,6 +85,8 @@ kubezero: {{- toYaml .Values.istio.ingress | nindent 8 }} {{- end }} + metrics: + enabled: {{ .Values.metrics.enabled }} {{- end }} argo-cd: diff --git a/deploy/values.yaml b/deploy/values.yaml index 0c00f1f..4572d31 100644 --- a/deploy/values.yaml +++ b/deploy/values.yaml @@ -25,6 +25,10 @@ kiam: istio: enabled: false +metrics: + enabled: false + +# Deprecated once metrics goes live prometheus: enabled: false