From bddcbbe2d37aae34946d17cb404d1bf173efef63 Mon Sep 17 00:00:00 2001 From: tehNooB <125163838+JamesTurland@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:43:40 +0000 Subject: [PATCH] Update longhorn-K3S.sh --- Kubernetes/Longhorn/longhorn-K3S.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Kubernetes/Longhorn/longhorn-K3S.sh b/Kubernetes/Longhorn/longhorn-K3S.sh index 98c681c..bc8f9a7 100644 --- a/Kubernetes/Longhorn/longhorn-K3S.sh +++ b/Kubernetes/Longhorn/longhorn-K3S.sh @@ -46,6 +46,11 @@ storage=($longhorn1 $longhorn2 $longhorn3) sudo timedatectl set-ntp off sudo timedatectl set-ntp on +#add ssh keys for all nodes +for node in "${storage[@]}"; do + ssh-copy-id $user@$node +done + # Step 1: Add new longhorn nodes to cluster (note: label added) for newnode in "${storage[@]}"; do k3sup join \