Skip to content
Snippets Groups Projects
Commit d7ad690a authored by Krishna Nikhil Vedurumudi's avatar Krishna Nikhil Vedurumudi
Browse files

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

set up virtual service for partition service

See merge request !89
parents 89fb5727 c45bd92e
No related branches found
No related tags found
1 merge request!89set up virtual service for partition service
Pipeline #66659 failed
......@@ -14,3 +14,5 @@ image:
repository: #{container-registry}#.azurecr.io
branch: #{ENVIRONMENT_NAME}#
tag: #{Build.SourceVersion}#
istioDnsHost: #{ISTIO_DNS_HOST}#
\ No newline at end of file
......@@ -23,5 +23,6 @@ spec:
- protocol: TCP
port: 80
targetPort: 80
name: http
selector:
app: {{ .Chart.Name }}
---
# Source: /devops/azure/chart/templates/virtual-service.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: {{ .Chart.Name }}
namespace: osdu
spec:
hosts:
- "{{ .Values.istioDnsHost }}"
gateways:
- istio-gateway
http:
- match:
- uri:
prefix: "/api/{{ .Chart.Name }}/v1"
route:
- destination:
host: {{ .Chart.Name }}
port:
number: 80
corsPolicy:
maxAge: "60m"
allowCredentials: true
allowHeaders:
- Authorization
- Data-Partition-Id
- Correlation-Id
allowMethods:
- POST
- GET
- PATCH
- DELETE
allowOrigins:
- prefix: "*"
\ No newline at end of file
......@@ -21,3 +21,5 @@ image:
repository: community.opengroup.org:5555/osdu/platform/system/partition
branch: master
tag: latest
istioDnsHost: ""
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment