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" }} {{- 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: syncPolicy:
automated: automated:
prune: true prune: true
---
apiVersion: v1
kind: Namespace
metadata:
name: monitoring
{{- end }} {{- end }}

View File

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

View File

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