Move metrics to monitoring NS

This commit is contained in:
Stefan Reimer 2020-07-30 18:26:11 +01:00
parent 676273f7e2
commit 987ad6aef0
3 changed files with 12 additions and 1 deletions

View File

@ -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 }}

View File

@ -85,6 +85,8 @@ kubezero:
{{- toYaml .Values.istio.ingress | nindent 8 }}
{{- end }}
metrics:
enabled: {{ .Values.metrics.enabled }}
{{- end }}
argo-cd:

View File

@ -25,6 +25,10 @@ kiam:
istio:
enabled: false
metrics:
enabled: false
# Deprecated once metrics goes live
prometheus:
enabled: false