github.com/cilium/cilium@v1.16.2/test/vagrant-local-start-runtime.sh (about) 1 #!/usr/bin/env bash 2 3 set -e 4 5 export K8S_VERSION=${K8S_VERSION:-1.19} 6 7 echo "destroying runtime" 8 vagrant destroy runtime --force 2>/dev/null 9 10 if [ "$PRELOAD_VM" != "false" ]; then 11 ./vagrant-local-create-box.sh 12 else 13 # Use defaults (see ../vagrant_box_defaults.rb) 14 unset SERVER_BOX 15 unset SERVER_VERSION 16 fi 17 18 if [[ "$NFS" != "0" ]]; then 19 echo "# NFS enabled. don't forget to enable these ports on your host" 20 echo "# before starting the VMs in order to have nfs working" 21 echo "# iptables -I INPUT -s 192.168.58.0/24 -j ACCEPT" 22 fi 23 24 echo "starting runtime vm" 25 vagrant up runtime --provision