mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-25 01:10:22 +00:00
Update longhorn-K3S.sh
This commit is contained in:
parent
bddcbbe2d3
commit
32619631f5
1 changed files with 10 additions and 1 deletions
|
@ -46,11 +46,20 @@ storage=($longhorn1 $longhorn2 $longhorn3)
|
|||
sudo timedatectl set-ntp off
|
||||
sudo timedatectl set-ntp on
|
||||
|
||||
#add ssh keys for all nodes
|
||||
# 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
|
||||
echo -e " \033[31;5mOpen-ISCSI not found, installing\033[0m"
|
||||
sudo apt install open-iscsi
|
||||
else
|
||||
echo -e " \033[32;5mOpen-ISCSI already installed\033[0m"
|
||||
fi
|
||||
|
||||
# Step 1: Add new longhorn nodes to cluster (note: label added)
|
||||
for newnode in "${storage[@]}"; do
|
||||
k3sup join \
|
||||
|
|
Loading…
Reference in a new issue