Skip to content

Instantly share code, notes, and snippets.

@horitaku1124
Last active February 20, 2020 10:33
Show Gist options
  • Save horitaku1124/2cee26625635df0027f6de29bb9e9fbd to your computer and use it in GitHub Desktop.
Save horitaku1124/2cee26625635df0027f6de29bb9e9fbd to your computer and use it in GitHub Desktop.
minikube setup
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-19.10"
config.vm.provider "virtualbox" do |vb|
vb.cpus = "2"
end
config.vm.network "private_network", ip: "192.168.33.100"
config.vm.provision "shell", inline: <<-SHELL
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
mv ./kubectl /usr/local/bin/kubectl
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.24.1/minikube-linux-amd64
chmod +x minikube
mv minikube /usr/local/bin/
minikube version
kubectl version
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
apt-get install docker-ce docker-ce-cli containerd.io -y
ufw disable
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment