Skip to content

Commit

Permalink
updage gateway for azure
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandraKrasteva committed Jun 22, 2024
1 parent f09f61f commit bad23ce
Showing 1 changed file with 52 additions and 9 deletions.
61 changes: 52 additions & 9 deletions docker_kubernetes/app/azure-deployment/gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ spec:
- name: http
protocol: HTTP
port: 80

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
Expand All @@ -24,8 +23,6 @@ metadata:
spec:
parentRefs:
- name: eg
# hostnames:
# - "skipass.api"
rules:
- backendRefs:
- kind: Service
Expand All @@ -39,6 +36,42 @@ spec:
- path:
type: PathPrefix
value: /delete-post
- path:
type: PathPrefix
value: /delete-all-posts
- path:
type: PathPrefix
value: /update-post
- path:
type: PathPrefix
value: /create-reaction
- path:
type: PathPrefix
value: /delete-reaction
- path:
type: PathPrefix
value: /get-reactions
- path:
type: PathPrefix
value: /delete-reactions
- backendRefs:
- kind: Service
namespace: default
name: journey-service-service
port: 8080
matches:
- path:
type: PathPrefix
value: /create-journey
- path:
type: PathPrefix
value: /view-journeys-user
- path:
type: PathPrefix
value: /delete-journey
- path:
type: PathPrefix
value: /delete-journeys-user
---
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: SecurityPolicy
Expand All @@ -56,11 +89,12 @@ spec:
uri: "https://dev-hxsl4k6mw7xspicu.eu.auth0.com/.well-known/jwks.json"
cors:
allowOrigins:
- "https://skipass.pages.dev"
- "http://localhost:3000"
allowMethods:
- GET
- POST
- DELETE
- PUT
allowHeaders:
- "*"
exposeHeaders:
Expand All @@ -73,8 +107,6 @@ metadata:
spec:
parentRefs:
- name: eg
# hostnames:
# - "skipass.api"
rules:
- backendRefs:
- kind: Service
Expand All @@ -84,7 +116,19 @@ spec:
matches:
- path:
type: PathPrefix
value: /view
value: /view-posts
- path:
type: PathPrefix
value: /view-posts-user
- backendRefs:
- kind: Service
namespace: default
name: journey-service-service
port: 8080
matches:
- path:
type: PathPrefix
value: /view-journey
---
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: SecurityPolicy
Expand All @@ -97,8 +141,7 @@ spec:
name: open-routes
cors:
allowOrigins:
- '*'
- "https://skipass.pages.dev"
- "http://localhost:3000"
allowMethods:
- GET
allowHeaders:
Expand Down

0 comments on commit bad23ce

Please sign in to comment.