-
Oleksandr Kosse (EPAM) authoredOleksandr Kosse (EPAM) authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
virtual-service.yaml 937 B
apiVersion: networking.istio.io/v1alpha3
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:
# FIXME: use it when migrate to istio 1.6
# - match:
# - uri:
# prefix: "/api/indexer/v2/_dps"
# directResponse:
# status: 403
# body:
# string: "Forbidden"
- match:
- uri:
prefix: "/api/indexer/v2"
route:
- destination:
port:
number: 80
host: {{ printf "%s.%s.svc.cluster.local" .Values.conf.appName .Release.Namespace | quote }}