Update longhorn-K3S.sh

This commit is contained in:
tehNooB 2023-11-01 12:43:40 +00:00 committed by GitHub
parent 2bccbfc0e3
commit bddcbbe2d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 \