update: Added Longhorn installation process and updated memory allocation for VMs
update: Added 'git' and 'vagrant' to required tools in pre-flight checks fix: configured k3s install to use internal nic for flanel network fix: corrected JSON formatting for config json update: reduce VM memory allocation to 2GB, add Longhorn installation scripts and prerequisites, and implement checks for existing pods
This commit is contained in:
parent
1605aa4f90
commit
268e1a136b
8 changed files with 160 additions and 4 deletions
17
vagrant/dev/ubuntu/scripts/wait_for_longhorn.sh
Executable file
17
vagrant/dev/ubuntu/scripts/wait_for_longhorn.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo
|
||||
echo "wait for longhorn installation"
|
||||
echo
|
||||
|
||||
ssh-add ~/.ssh/vm*_key
|
||||
source /home/vagrant/ansible/venv/bin/activate
|
||||
while true; do
|
||||
not_ready=$(kubectl -n longhorn-system get pods --no-headers 2>/dev/null | grep -vE 'Running|Completed' | wc -l)
|
||||
total=$(kubectl -n longhorn-system get pods --no-headers 2>/dev/null | wc -l)
|
||||
if [[ $total -gt 0 && $not_ready -eq 0 ]]; then
|
||||
echo "All Longhorn pods are ready."
|
||||
break
|
||||
fi
|
||||
sleep 10
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue