Skip to content

Commit

Permalink
Update path api
Browse files Browse the repository at this point in the history
  • Loading branch information
vectornguyen76 committed Nov 24, 2023
1 parent c4f7799 commit 18b10a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
4 changes: 4 additions & 0 deletions kubernetes/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@ spec:
value: db_user
- name: PGPASSWORD
value: db_password
- name: DATABASE_URL
value: postgresql+asyncpg://db_user:db_password@postgres-service.default/db_dev
- name: JWT_SECRET
value: JWT_SECRET
ports:
- containerPort: 5000
15 changes: 4 additions & 11 deletions kubernetes/ingress-nginx-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@ metadata:
name: ingress-nginx-service
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: /app-flask
pathType: Prefix
- path: /api/?(.*)
pathType: ImplementationSpecific
backend:
service:
name: example-service
port:
number: 3000
- path: /app-node
pathType: Prefix
backend:
service:
name: example-service
name: backend-service
port:
number: 5000

0 comments on commit 18b10a1

Please sign in to comment.