Skip to content

Commit

Permalink
Create service.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yash509 authored May 9, 2024
1 parent d74117b commit f7c8a1c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: uber-app-service
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: "alb"
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
spec:
selector:
app: uber-app
ports:
- protocol: TCP
port: 5000 # Port exposed by the service externally (outside the cluster)
targetPort: 5000 # Port your application listens on inside the pods
type: LoadBalancer

0 comments on commit f7c8a1c

Please sign in to comment.