Skip to content

Commit

Permalink
Update ingress routing
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekrana committed Nov 10, 2023
1 parent 27a2a36 commit d8b913e
Showing 1 changed file with 8 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,41 +1,26 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: service-1
name: tech-stack
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: nginx
rules:
- host: public.my-services.com
- host: localhost
http:
paths:
- path: /v1/users(/|$)(.*)
pathType: Prefix
pathType: ImplementationSpecific
backend:
service:
name: service-1
name: tech-stack-service-1
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: service-2
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: nginx
rules:
- host: public.my-services.com
http:
paths:
number: 5000
- path: /v1/products(/|$)(.*)
pathType: Prefix
pathType: ImplementationSpecific
backend:
service:
name: service-2
name: tech-stack-service-2
port:
number: 80
---

number: 5000

0 comments on commit d8b913e

Please sign in to comment.