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 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 update: improve error logging in RunJsonDeployment and RunCommand functions update: add jq installation to provision script update: add version flag
This commit is contained in:
parent
d839fd5687
commit
636a0494ac
20 changed files with 385 additions and 21 deletions
22
vagrant/dev/ubuntu/scripts/install_longhorn.sh
Executable file
22
vagrant/dev/ubuntu/scripts/install_longhorn.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo
|
||||
echo "vagrant longhorn installation"
|
||||
echo
|
||||
|
||||
ssh-add ~/.ssh/vm*_key
|
||||
source /home/vagrant/ansible/venv/bin/activate
|
||||
# Check if there are any pods in the longhorn-system namespace
|
||||
if kubectl -n longhorn-system get pods --no-headers 2>/dev/null | grep -q '^[^ ]'; then
|
||||
echo "Pods already exist in the longhorn-system namespace. Skipping installation."
|
||||
exit 0
|
||||
fi
|
||||
# https://github.com/longhorn/longhorn/releases
|
||||
# v1.8.1 in prod 1.9.1 is latest
|
||||
LONGHORN_RELEASE="v1.8.1"
|
||||
LONGHORN_RELEASE_URL="https://raw.githubusercontent.com/longhorn/longhorn/$LONGHORN_RELEASE/deploy/longhorn.yaml"
|
||||
|
||||
echo "Applying Longhorn release $LONGHORN_RELEASE..."
|
||||
echo "Using Longhorn release URL: $LONGHORN_RELEASE_URL"
|
||||
|
||||
kubectl apply -f $LONGHORN_RELEASE_URL
|
||||
Loading…
Add table
Add a link
Reference in a new issue