Skip to content

Commit

Permalink
Merge pull request #14 from pradumchintamani/deployment-LB
Browse files Browse the repository at this point in the history
Deployment lb
  • Loading branch information
pradumchintamani committed Jun 26, 2024
2 parents 5c108de + 1328d9e commit 8cfe61a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deployDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
docker push hellopradum/frontend-wanderlust:latest
- name: Update kubeconfig
run: aws eks update-kubeconfig --name demo-ekscluster
run: aws eks update-kubeconfig --name wanderlust-ekscluster1

- name: Create and claim persistent volume
run: |
Expand Down
2 changes: 1 addition & 1 deletion backend/.env.docker
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MONGODB_URI="mongodb://mongo-service/wanderlust"
REDIS_URL="redis://redis-service:6379"
PORT=8080
FRONTEND_URL="http://107.21.89.1:5173"
FRONTEND_URL="http://a0b8b9e24617a43af955a7f3ad04005c-180821507.us-east-1.elb.amazonaws.com:5173"
ACCESS_COOKIE_MAXAGE=120000
ACCESS_TOKEN_EXPIRES_IN='120s'
REFRESH_COOKIE_MAXAGE=120000
Expand Down
2 changes: 1 addition & 1 deletion frontend/.env.docker
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VITE_API_PATH=107.21.89.1:31100
VITE_API_PATH=http://abb27d3603d12453aa2f7d7348531cc4-159321458.us-east-1.elb.amazonaws.com:30766

4 changes: 2 additions & 2 deletions kubernetes/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ metadata:
name: backend-service
namespace: wanderlust
spec:
type: NodePort
type: LoadBalancer
selector:
app: backend
ports:
- port: 8080
targetPort: 8080
protocol: TCP
nodePort: 31100

3 changes: 1 addition & 2 deletions kubernetes/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ metadata:
spec:
selector:
app: frontend
type: NodePort
type: LoadBalancer
ports:
- port: 5173
targetPort: 5173
protocol: TCP
nodePort: 31000

0 comments on commit 8cfe61a

Please sign in to comment.