Revision 1569484069667e9fdebdb5f8271d43044706fff9 authored by viktor-kurchenko on 14 February 2024, 10:08:00 UTC, committed by viktor-kurchenko on 14 February 2024, 10:08:00 UTC
Signed-off-by: viktor-kurchenko <viktor.kurchenko@isovalent.com>
1 parent 7f4e472
vagrant-local-start.sh
#!/usr/bin/env bash
set -e
export K8S_VERSION=${K8S_VERSION:-1.28}
export K8S_NODES=${K8S_NODES:-2}
echo "destroying vms"
i=1
while vagrant destroy k8s${i}-${K8S_VERSION} --force 2>/dev/null
do
(( i++ ))
done
if [ "$PRELOAD_VM" != "false" ]; then
./vagrant-local-create-box.sh
else
# Use defaults (see ../vagrant_box_defaults.rb)
unset SERVER_BOX
unset SERVER_VERSION
fi
if [[ "$NFS" != "0" ]]; then
echo "# NFS enabled. don't forget to enable these ports on your host"
echo "# before starting the VMs in order to have nfs working"
echo "# iptables -I INPUT -s 192.168.58.0/24 -j ACCEPT"
fi
echo "starting vms"
for i in $( seq 1 ${K8S_NODES} )
do
echo "Starting k8s${i}-${K8S_VERSION}"
vagrant up k8s${i}-${K8S_VERSION} --provision
done
echo "labeling nodes"
for i in $( seq 1 ${K8S_NODES} )
do
echo "Labeling k8s${i}-${K8S_VERSION}"
vagrant ssh k8s1-${K8S_VERSION} -- kubectl label node k8s${i} cilium.io/ci-node=k8s${i} --overwrite
done
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...