Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment lb #14

Merged
merged 11 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading