Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
unit-virtual-service.yml 714 B
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: {{ .Values.conf.appName | quote }}
  namespace: {{ .Release.Namespace | quote }}
spec:
  hosts:
    {{- if and .Values.global.domain .Values.global.onPremEnabled }}
    - {{ printf "osdu.%s" .Values.global.domain | quote }}
    {{- else if .Values.global.domain }}
    - {{ .Values.global.domain | quote }}
    {{- else }}
    - "*"
    {{- end }}
  gateways:
    - service-gateway
  http:
    - match:
        - uri:
            prefix: "/api/unit"
      route:
        - destination:
            port:
              number: 80
            host:  {{ printf "%s.%s.svc.cluster.local" .Values.conf.appName .Release.Namespace | quote }}