Commit f410bdc4 authored by Alexandre Vincent's avatar Alexandre Vincent
Browse files

Merge branch 'avincent/add-virtual-service' into 'master'

add virtual service

See merge request !239
parents a2c7fe2c a97274b8
Pipeline #65918 failed with stages
in 17 minutes and 39 seconds
---
# Source: /devops/azure/chart/templates/virtual-service.yaml
#
{{- if .Values.istioDnsHost }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
namespace: osdu
spec:
hosts:
- "{{ .Values.istioDnsHost }}"
gateways:
- istio-gateway
http:
- match:
- uri:
prefix: '{{ include "os-wellbore-ddms.prefix" . }}/'
# TODO make naming more uniform across services: prefix: "/api/{{ .Chart.Name }}/v2"
route:
- destination:
host: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
port:
number: 80
corsPolicy:
maxAge: "60m"
allowCredentials: true
allowHeaders:
- Authorization
- Data-Partition-Id
- Correlation-Id
allowMethods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowOrigins:
- prefix: "*"
{{- end }}
\ No newline at end of file
...@@ -80,3 +80,6 @@ ingress: ...@@ -80,3 +80,6 @@ ingress:
authorizationPolicy: authorizationPolicy:
name: wellbore-jwt-authz name: wellbore-jwt-authz
istioDnsHost: ""
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment