virtual-service.yml 572 Bytes
Newer Older
1
2
3
4
5
6
7
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: "{{ .Values.conf.app_name }}"
  namespace: "{{ .Release.Namespace }}"
spec:
  hosts:
8
    {{- if .Values.conf.domain }}
9
    - {{ printf "osdu.%s" .Values.conf.domain | quote }}
10
    {{- else }}
11
    - "*"
12
    {{- end }}
13
14
15
16
17
18
19
20
21
22
23
  gateways:
    - service-gateway
  http:
    - match:
        - uri:
            prefix: "/api/dataset"
      route:
        - destination:
            port:
              number: 80
            host: "{{ .Values.conf.app_name }}.{{ .Release.Namespace }}.svc.cluster.local"