Open nmehran opened 7 months ago
Thank you, I will test all of these when I can.
After some further testing, your original time synchronization method seems to be more robust!
sudo timedatectl set-ntp off
sudo timedatectl set-ntp on
I think synchronizing the time for each node in the for newnode in "${all[@]}"; do
loop is the most important improvement we could make, because in my tests, the nodes were failing to install k3sup dependencies without it.
I've gone ahead and edited the above post to reflect these changes.
Below are some simple enhancements which will improve the robustness of the
k3s.sh
script.End script immediately on error
Note: This will provide a cleaner log as to what caused the error.
Insert at the top of the script:
Update and upgrade system packages, with lock mitigation support.
Add:
Synchronize node NTPs to ensure time synchronization on nodes
Note:
k3sup
and other downloads may fail if time is not synchronized between VM snapshots, so this is important.Insert:
Add robust wait on "Install Metallb"
Append: