From 6e0fbc25beb6e93b978b9f2d86372d60a2fa0bef Mon Sep 17 00:00:00 2001 From: tehNooB <125163838+JamesTurland@users.noreply.github.com> Date: Wed, 18 Oct 2023 13:44:11 +0100 Subject: [PATCH] Update longhorn.sh --- Kubernetes/Longhorn/longhorn.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Kubernetes/Longhorn/longhorn.sh b/Kubernetes/Longhorn/longhorn.sh index d66553c..13da915 100644 --- a/Kubernetes/Longhorn/longhorn.sh +++ b/Kubernetes/Longhorn/longhorn.sh @@ -45,7 +45,7 @@ sudo timedatectl set-ntp on # Step 1: Add new longhorn nodes to cluster (note: label added) for newnode in "${storage[@]}"; do k3sup join \ - --ip $newagent \ + --ip $newnode \ --user $user \ --sudo \ --k3s-channel stable \ @@ -56,7 +56,7 @@ for newnode in "${storage[@]}"; do done # 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 \ --namespace longhorn-system \ --watch @@ -65,7 +65,6 @@ kubectl get pods \ kubectl expose deployment longhorn-ui --name=longhorn-lb --port=80 --type=LoadBalancer -n longhorn-system kubectl get nodes -kubectl get svc -kubectl get pods --all-namespaces -o wide +kubectl get svc -n longhorn-system -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"