From b6b9b0e20b62fc5bc0977d0674bc5af426212012 Mon Sep 17 00:00:00 2001 From: tehNooB <125163838+JamesTurland@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:58:27 +0000 Subject: [PATCH] Update longhorn-RKE2.sh --- Kubernetes/Longhorn/longhorn-RKE2.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Kubernetes/Longhorn/longhorn-RKE2.sh b/Kubernetes/Longhorn/longhorn-RKE2.sh index 9c4051e..f18f6b4 100644 --- a/Kubernetes/Longhorn/longhorn-RKE2.sh +++ b/Kubernetes/Longhorn/longhorn-RKE2.sh @@ -54,6 +54,11 @@ certName=id_rsa 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 + # add open-iscsi - needed for Debian and non-cloud Ubuntu if ! command -v sudo service open-iscsi status &> /dev/null then