KubeZero/charts/kubezero-metrics/templates/istio-service.yaml

36 lines
776 B
YAML
Raw Normal View History

2020-08-03 15:24:32 +00:00
{{- if .Values.grafana.istio.enabled }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: grafana
2020-08-06 17:15:20 +00:00
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
2020-08-03 15:24:32 +00:00
spec:
hosts:
- {{ .Values.grafana.istio.url }}
gateways:
- {{ .Values.grafana.istio.gateway }}
http:
- route:
- destination:
2020-08-03 15:34:57 +00:00
host: metrics-grafana
2020-08-03 15:24:32 +00:00
{{- end }}
2020-08-03 16:44:58 +00:00
{{- if .Values.prometheus.istio.enabled }}
2020-10-05 11:31:00 +00:00
---
2020-08-03 16:44:58 +00:00
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: prometheus
2020-08-06 17:15:20 +00:00
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
2020-08-03 16:44:58 +00:00
spec:
hosts:
- {{ .Values.prometheus.istio.url }}
gateways:
- {{ .Values.prometheus.istio.gateway }}
http:
- route:
- destination:
2020-10-10 01:41:43 +00:00
host: metrics-kube-prometheus-st-prometheus
2020-08-03 16:44:58 +00:00
{{- end }}