Skip to content

Commit

Permalink
Update routes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekrana committed Nov 10, 2023
1 parent 26f184f commit 9a24502
Showing 1 changed file with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ spec:
- host: localhost
http:
paths:
- path: /users(/|$)(.*)
- path: /api/users(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: tech-stack-service-1
port:
number: 5000

---
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand All @@ -30,7 +31,7 @@ spec:
- host: localhost
http:
paths:
- path: /v1/users(/|$)(.*)
- path: /api/v1/users(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
Expand All @@ -50,7 +51,7 @@ spec:
- host: localhost
http:
paths:
- path: /products(/|$)(.*)
- path: /api/products(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
Expand All @@ -70,12 +71,32 @@ spec:
- host: localhost
http:
paths:
- path: /v1/products(/|$)(.*)
- path: /api/v1/products(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: tech-stack-service-2
port:
number: 5000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: service-3
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
ingressClassName: nginx
rules:
- host: localhost
http:
paths:
- path: /(.*)
pathType: ImplementationSpecific
backend:
service:
name: tech-stack-service-3
port:
number: 8080
---

0 comments on commit 9a24502

Please sign in to comment.