Update longhorn.sh

This commit is contained in:
tehNooB 2023-10-18 13:44:11 +01:00 committed by GitHub
parent 0607f84175
commit 6e0fbc25be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ sudo timedatectl set-ntp on
# Step 1: Add new longhorn nodes to cluster (note: label added) # Step 1: Add new longhorn nodes to cluster (note: label added)
for newnode in "${storage[@]}"; do for newnode in "${storage[@]}"; do
k3sup join \ k3sup join \
--ip $newagent \ --ip $newnode \
--user $user \ --user $user \
--sudo \ --sudo \
--k3s-channel stable \ --k3s-channel stable \
@ -56,7 +56,7 @@ for newnode in "${storage[@]}"; do
done done
# Step 2: Install Longhorn (using modified Official to pin to Longhorn Nodes) # Step 2: Install Longhorn (using modified Official to pin to Longhorn Nodes)
kubectl apply -f https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/Longhorn/longhorn.yaml kubectl apply -f https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/Longhorn/longhorn-update.yaml
kubectl get pods \ kubectl get pods \
--namespace longhorn-system \ --namespace longhorn-system \
--watch --watch
@ -65,7 +65,6 @@ kubectl get pods \
kubectl expose deployment longhorn-ui --name=longhorn-lb --port=80 --type=LoadBalancer -n longhorn-system kubectl expose deployment longhorn-ui --name=longhorn-lb --port=80 --type=LoadBalancer -n longhorn-system
kubectl get nodes kubectl get nodes
kubectl get svc kubectl get svc -n longhorn-system
kubectl get pods --all-namespaces -o wide
echo -e " \033[32;5mHappy Kubing! Access Nginx at EXTERNAL-IP above\033[0m" echo -e " \033[32;5mHappy Kubing! Access Longhorn at EXTERNAL-IP above\033[0m"