wip thing
This commit is contained in:
21
README.md
21
README.md
@@ -20,4 +20,25 @@ https://k3s.rocks/metrics/
|
||||
kubectl create namespace dishes
|
||||
kubectl create deploy schnipo --image=bschnorbus/dish-schnipo -n dishes
|
||||
kubectl expose deploy schnipo --port=80 --target-port=8080 --type=LoadBalancer -n dishes
|
||||
```
|
||||
|
||||
|
||||
## Load Balancer Test w/ Nginx Deployment
|
||||
|
||||
```
|
||||
#Create deploy
|
||||
kubectl create deploy nginx --image=nginx
|
||||
|
||||
kubectl scale --replicas=3 deployment/nginx -n test
|
||||
|
||||
k create svc -n test clusterip nginx --tcp=80
|
||||
|
||||
#Expose the deploy as a LoadBalancer type
|
||||
kubectl expose deploy nginx --port=80 --target-port=80 --type=LoadBalancer
|
||||
|
||||
#Verify
|
||||
kubectl get svc nginx
|
||||
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
||||
nginx LoadBalancer 10.43.60.115 192.168.52.30 80:32676/TCP 5h19m
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user