summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_multus
diff options
context:
space:
mode:
Diffstat (limited to 'src/vagrant/kubeadm_multus')
-rw-r--r--src/vagrant/kubeadm_multus/Vagrantfile1
-rwxr-xr-xsrc/vagrant/kubeadm_multus/deploy.sh8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_multus/Vagrantfile b/src/vagrant/kubeadm_multus/Vagrantfile
index aa3792f..da5c5d3 100644
--- a/src/vagrant/kubeadm_multus/Vagrantfile
+++ b/src/vagrant/kubeadm_multus/Vagrantfile
@@ -10,6 +10,7 @@ Vagrant.configure("2") do |config|
vb.customize ["modifyvm", :id, "--cpus", 4]
vb.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
vb.customize "post-boot",["controlvm", :id, "setlinkstate1", "on"]
+ vb.destroy_unused_network_interfaces = true
end
config.vm.provision "shell", path: "host_setup.sh", privileged: false
diff --git a/src/vagrant/kubeadm_multus/deploy.sh b/src/vagrant/kubeadm_multus/deploy.sh
new file mode 100755
index 0000000..ae9f798
--- /dev/null
+++ b/src/vagrant/kubeadm_multus/deploy.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -ex
+HOME="$(dirname `readlink -f $0`)"
+
+cd $HOME
+vagrant up
+vagrant destroy -f