34 lines
706 B
YAML
34 lines
706 B
YAML
{{- 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: metrics-grafana
|
|
{{- end }}
|
|
---
|
|
{{- if .Values.prometheus.istio.enabled }}
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
name: prometheus
|
|
namespace: monitoring
|
|
spec:
|
|
hosts:
|
|
- {{ .Values.prometheus.istio.url }}
|
|
gateways:
|
|
- {{ .Values.prometheus.istio.gateway }}
|
|
http:
|
|
- route:
|
|
- destination:
|
|
host: metrics-prometheus-operato-prometheus
|
|
{{- end }}
|