summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_basic
diff options
context:
space:
mode:
Diffstat (limited to 'src/vagrant/kubeadm_basic')
-rw-r--r--src/vagrant/kubeadm_basic/Vagrantfile2
-rwxr-xr-xsrc/vagrant/kubeadm_basic/deploy.sh8
2 files changed, 10 insertions, 0 deletions
diff --git a/src/vagrant/kubeadm_basic/Vagrantfile b/src/vagrant/kubeadm_basic/Vagrantfile
index f1e7aac..10bf414 100644
--- a/src/vagrant/kubeadm_basic/Vagrantfile
+++ b/src/vagrant/kubeadm_basic/Vagrantfile
@@ -6,6 +6,7 @@ Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.synced_folder "../..", "/src"
config.vm.provision "shell", path: "host_setup.sh", privileged: false
+
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 4096]
vb.customize ["modifyvm", :id, "--cpus", 4]
@@ -13,6 +14,7 @@ Vagrant.configure("2") do |config|
vb.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.1", "1"]
vb.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.2", "1"]
vb.customize "post-boot",["controlvm", :id, "setlinkstate1", "on"]
+ vb.destroy_unused_network_interfaces = true
end
config.vm.define "master" do |config|
diff --git a/src/vagrant/kubeadm_basic/deploy.sh b/src/vagrant/kubeadm_basic/deploy.sh
new file mode 100755
index 0000000..ae9f798
--- /dev/null
+++ b/src/vagrant/kubeadm_basic/deploy.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -ex
+HOME="$(dirname `readlink -f $0`)"
+
+cd $HOME
+vagrant up
+vagrant destroy -f