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