Commit 5b3a018e authored by harshit aggarwal's avatar harshit aggarwal
Browse files

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

set up virtual service for entitlements service

See merge request !112
parents 29ed9d2c 4e33c0e3
Pipeline #66720 passed with stages
in 17 minutes and 31 seconds
...@@ -28,3 +28,5 @@ config: ...@@ -28,3 +28,5 @@ config:
redis: redis:
ttl: ttl:
seconds: #{ENTV2_REDIS_TTL_SECONDS}# seconds: #{ENTV2_REDIS_TTL_SECONDS}#
istioDnsHost: #{ISTIO_DNS_HOST}#
\ No newline at end of file
...@@ -23,5 +23,6 @@ spec: ...@@ -23,5 +23,6 @@ spec:
- protocol: TCP - protocol: TCP
port: 80 port: 80
targetPort: 80 targetPort: 80
name: http
selector: selector:
app: {{ .Chart.Name }} 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 }}/v2"
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
...@@ -35,3 +35,5 @@ config: ...@@ -35,3 +35,5 @@ config:
redis: redis:
ttl: ttl:
seconds: 1 seconds: 1
istioDnsHost: ""
\ No newline at end of file
Markdown is supported
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