blob: bb2e11dfb70a24e8b3ded0d42c7a8d048e888bf4 [file] [log] [blame]
#@ load("@ytt:data", "data")
#@ if data.values.istio.enabled:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: grafana-istio-virtual-service
namespace: #@ data.values.namespace
labels:
app: gerrit-monitoring
spec:
hosts:
- #@ data.values.monitoring.grafana.host
gateways:
- monitoring-istio-gateway
http:
- route:
- destination:
host: #@ "grafana-{}.{}.svc.cluster.local".format(data.values.namespace, data.values.namespace)
port:
number: 80
#@ end