Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Load Balancer on Docker Desktop Hands-On
Browse files Browse the repository at this point in the history
  • Loading branch information
guybarrette committed Jul 14, 2022
1 parent 777b937 commit 44ba582
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
25 changes: 25 additions & 0 deletions L26-07 Load Balancer/deploy-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: deploy-nginx
labels:
app: nginx
env: prod
spec:
replicas: 2
revisionHistoryLimit: 3
selector:
matchLabels:
app: nginx
env: prod
template:
metadata:
labels:
app: nginx
env: prod
spec:
containers:
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
13 changes: 13 additions & 0 deletions L26-07 Load Balancer/loadbalancer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: svc-example
spec:
type: LoadBalancer
selector:
app: nginx
env: prod
ports:
- protocol: TCP
port: 8080
targetPort: 80

0 comments on commit 44ba582

Please sign in to comment.