virtual-service.yaml 574 Bytes
{{- if .Values.virtualService.enabled }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: {{ include "moqui.fullname" . }}
  labels:
    {{- include "moqui.labels" . | nindent 4 }}
spec:
  gateways: {{ .Values.virtualService.gateways | toYaml | nindent 4 }}
  hosts: {{ .Values.virtualService.hosts | toYaml | nindent 4 }}
  http:
    - match: {{ .Values.virtualService.match | toYaml | nindent 8 }}
      route:
        - destination:
            port:
              number: 8080
            host: {{ include "moqui.fullname" . }}
{{- end }}