mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2025-08-14 17:22:24 +00:00
Update longhorn-K3S.sh
This commit is contained in:
parent
2bccbfc0e3
commit
bddcbbe2d3
@ -46,6 +46,11 @@ storage=($longhorn1 $longhorn2 $longhorn3)
|
|||||||
sudo timedatectl set-ntp off
|
sudo timedatectl set-ntp off
|
||||||
sudo timedatectl set-ntp on
|
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)
|
# Step 1: Add new longhorn nodes to cluster (note: label added)
|
||||||
for newnode in "${storage[@]}"; do
|
for newnode in "${storage[@]}"; do
|
||||||
k3sup join \
|
k3sup join \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user