Add istio support for metrics grafana

This commit is contained in:
Stefan Reimer 2020-08-03 16:24:32 +01:00
parent 7348f6dfa6
commit a49b01d768
4 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,16 @@
{{- if .Values.grafana.istio.enabled }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: grafana
namespace: monitoring
spec:
hosts:
- {{ .Values.grafana.istio.url }}
gateways:
- {{ .Values.grafana.istio.gateway }}
http:
- route:
- destination:
host: grafana
{{- end }}

View File

@ -1,3 +1,9 @@
grafana:
istio:
enabled: false
url: ""
gateway: ingressgateway.istio-system.svc.cluster.local
prometheus-operator:
alertmanager:
enabled: false

View File

@ -94,6 +94,12 @@ kubezero:
metrics:
enabled: {{ .Values.metrics.enabled }}
{{- if and .Values.metrics.istio.enabled .Values.istio.enabled }}
istio:
{{- with .Values.metrics.istio }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- end }}
argo-cd:
{{- with index .Values "argo-cd" "server" }}
@ -104,7 +110,7 @@ argo-cd:
configs:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if and ( not .Values.bootstrap ) ( index .Values "argo-cd" "istio" "enabled" ) .Values.istio.enabled }}
{{- if and ( index .Values "argo-cd" "istio" "enabled" ) .Values.istio.enabled }}
istio:
{{- with index .Values "argo-cd" "istio" }}
{{- toYaml . | nindent 4 }}

View File

@ -27,6 +27,8 @@ istio:
metrics:
enabled: false
istio:
enabled: false
# Deprecated once metrics goes live
prometheus: