This commit is contained in:
James Turland 2023-12-03 22:51:35 +00:00
parent acc1f3067c
commit dd682a0703

View file

@ -40,7 +40,7 @@ user=ubuntu
interface=eth0
# Set the virtual IP address (VIP)
vip=192.168.1.50
vip=192.168.3.50
# Array of master nodes
masters=($master2 $master3)
@ -55,7 +55,7 @@ all=($master1 $master2 $master3 $worker1 $worker2)
allnomaster1=($master2 $master3 $worker1 $worker2)
#Loadbalancer IP range
lbrange=192.168.1.61-192.168.1.79
lbrange=192.168.3.60-192.168.3.80
#ssh certificate name variable
certName=id_rsa
@ -179,6 +179,7 @@ kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.12/conf
curl -sO https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/K3S-Deploy/ipAddressPool
cat ipAddressPool | sed 's/$lbrange/'$lbrange'/g' > $HOME/ipAddressPool.yaml
kubectl apply -f ipAddressPool.yaml
kubectl apply -f https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/K3S-Deploy/l2Advertisement.yaml
# Step 9: Test with Nginx
kubectl apply -f https://raw.githubusercontent.com/inlets/inlets-operator/master/contrib/nginx-sample-deployment.yaml -n default