wip thing
This commit is contained in:
@@ -5,4 +5,4 @@ metadata:
|
|||||||
namespace: metallb-system
|
namespace: metallb-system
|
||||||
spec:
|
spec:
|
||||||
addresses:
|
addresses:
|
||||||
- 192.168.178.230-192.168.178.250
|
- 192.168.178.220-192.168.178.250
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ metadata:
|
|||||||
# can be left out, then all available addresspools will be bound
|
# can be left out, then all available addresspools will be bound
|
||||||
spec:
|
spec:
|
||||||
ipAddressPools:
|
ipAddressPools:
|
||||||
- cluster-pool
|
- default-address-pool
|
||||||
21
README.md
21
README.md
@@ -21,3 +21,24 @@ kubectl create namespace dishes
|
|||||||
kubectl create deploy schnipo --image=bschnorbus/dish-schnipo -n dishes
|
kubectl create deploy schnipo --image=bschnorbus/dish-schnipo -n dishes
|
||||||
kubectl expose deploy schnipo --port=80 --target-port=8080 --type=LoadBalancer -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
|
||||||
|
|
||||||
|
```
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nginx-ingress
|
name: nginx-ingress
|
||||||
namespace: nginx
|
namespace: test
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: nginx.internal.schnrbs.work
|
- host: nginx.k8s.internal.schnrbs.work
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -17,4 +17,3 @@ spec:
|
|||||||
name: nginx
|
name: nginx
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user