Skip to content

Commit

Permalink
adding loadbalancer (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raezil authored Mar 1, 2025
1 parent 17f0c74 commit b74339c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ kubectl apply -f postgres-service.yaml
kubectl apply -f postgres-pvc.yaml
kubectl apply -f app-deployment.yaml
kubectl apply -f app-service.yaml
kubectl apply -f app-loadbalancer.yaml
kubectl apply -f pgbouncer-all.yaml
kubectl rollout restart deployment pgbouncer
kubectl rollout restart deployment app-deployment
Expand Down
17 changes: 17 additions & 0 deletions k8s/app-loadbalancer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: app-loadbalancer
spec:
type: LoadBalancer
selector:
app: app
ports:
- name: grpc
protocol: TCP
port: 50051
targetPort: 50051
- name: http
protocol: TCP
port: 8080
targetPort: 8080

0 comments on commit b74339c

Please sign in to comment.