Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vagrantfile that installs minkube in a VM and runs it there with vm-driver=none
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "debian/stretch64"
# config.vm.box = "debian/buster64"
config.vm.provider "libvirt" do |v|
v.memory = 2048
v.cpus = 4
end
config.vm.provision "shell", inline: <<-EOF
set -x -e
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends curl apt-transport-https aptitude locales
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
locale-gen
wget --no-verbose https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
install minikube-linux-amd64 /usr/local/bin/minikube
wget --no-verbose -O - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list
apt-get update
apt-get install -y --no-install-recommends docker-engine kubectl aptitude
sudo usermod -a -G docker $(whoami)
newgrp docker
minikube config set vm-driver none
minikube start vm-driver=none
true
EOF
config.ssh.forward_x11 = true
config.vm.synced_folder ".", "/vagrant", disabled: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.