-
Notifications
You must be signed in to change notification settings - Fork 14
/
Vagrantfile
35 lines (29 loc) · 1.09 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/bionic64"
config.vm.network "public_network"
config.vm.provider "virtualbox" do |vb|
vb.cpus = 2
vb.memory = "2048"
end
config.vm.provision "shell", inline: <<-SHELL
mkdir -p /usr/local/bin/
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x kubectl
install kubectl /usr/local/bin/
rm kubectl -f
kubectl version
curl -sLo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
chmod +x minikube
install minikube /usr/local/bin/
rm minikube -f
minikube version
curl -fsSL https://get.docker.com | sh
usermod -aG docker $USER
minikube start --vm-driver=none
mv /root/.kube /root/.minikube /home/vagrant/
chown -R vagrant:vagrant /home/vagrant/.kube /home/vagrant/.minikube
sed -i 's!/root/.minikube/!/home/vagrant/.minikube/!g' /home/vagrant/.kube/config
SHELL
end