From 8f8bea877cf6ce1d228ed15600101313bcca3cee Mon Sep 17 00:00:00 2001 From: tehNooB <125163838+JamesTurland@users.noreply.github.com> Date: Thu, 2 Nov 2023 11:00:02 +0000 Subject: [PATCH] Update longhorn-K3S.sh --- Kubernetes/Longhorn/longhorn-K3S.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Kubernetes/Longhorn/longhorn-K3S.sh b/Kubernetes/Longhorn/longhorn-K3S.sh index c502a6e..c3a867d 100644 --- a/Kubernetes/Longhorn/longhorn-K3S.sh +++ b/Kubernetes/Longhorn/longhorn-K3S.sh @@ -39,6 +39,9 @@ vip=192.168.3.50 # Array of longhorn nodes storage=($longhorn1 $longhorn2 $longhorn3) +#ssh certificate name variable +certName=id_rsa + ############################################# # DO NOT EDIT BELOW # ############################################# @@ -69,7 +72,7 @@ for newnode in "${storage[@]}"; do --k3s-channel stable \ --server-ip $master1 \ --k3s-extra-args "--node-label \"longhorn=true\"" \ - --ssh-key $HOME/.ssh/id_rsa + --ssh-key $HOME/.ssh/$certName echo -e " \033[32;5mAgent node joined successfully!\033[0m" done