Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Update svc.yml #812

Closed
wants to merge 1 commit into from
Closed
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
12 changes: 7 additions & 5 deletions kubernetes/svc.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Define a Kubernetes Service to create a LoadBalancer for the "wmd" application
apiVersion: v1
kind: Service
metadata:
name: wmd-loadbalancer
name: wmd-loadbalancer # The name of the LoadBalancer service
spec:
type: LoadBalancer
type: LoadBalancer # Specifies that this is a LoadBalancer type service
ports:
- port: 9000
targetPort: 3000
- port: 9000 # The external port for the LoadBalancer
targetPort: 3000 # The port to forward traffic to within the pods
selector:
app: wmd
app: wmd # Selects pods with the label "app: wmd" to load balance traffic to
# End of LoadBalancer Service configuration