{{- if .Values.jaeger.istio.enabled }}
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: {{ include "kubezero-lib.fullname" . }}
  namespace: {{ .Release.Namespace }}
  labels:
    {{- include "kubezero-lib.labels" . | nindent 4 }}
spec:
  gateways:
  - {{ .Values.jaeger.istio.gateway }}
  hosts:
  - {{ .Values.jaeger.istio.url }}
  http:
  - route:
    - destination:
        host: {{ .Release.Name }}-jaeger-query
        port:
          number: 80
{{- end }}
