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