Skip to content

Instantly share code, notes, and snippets.

@lalyos
Last active September 4, 2018 12:42
Show Gist options
  • Save lalyos/d6ce97ce36c15851b5bbc816bcfacb58 to your computer and use it in GitHub Desktop.
Save lalyos/d6ce97ce36c15851b5bbc816bcfacb58 to your computer and use it in GitHub Desktop.
minikube with hyperkit

minikube is an easy way to work with local kubernetes on osx. By default its uses VirtulBox to create a VM which hosts docker/kubernetes. But you can use different vm drivers to manage the VM. Hyperkit seems to be a more reliable hypervisor.

The rest of this document explains how to use minikube with the hyperkit driver

install minikube

You can check if you have minikube installed:

$ minikube version
minikube version: v0.27.0

If you dont have it, use brew to install:

brew cask install minikube

isntall the driver

brew install docker-machine-driver-hyperkit 

make sure you execute the 2 sudo lines from instructions:

sudo chown root:wheel /usr/local/opt/docker-machine-driver-hyperkit/bin/docker-machine-driver-hyperkit
sudo chmod u+s /usr/local/opt/docker-machine-driver-hyperkit/bin/docker-machine-driver-hyperkit

delete old minikube

minikube delete

if the previous machine is stuck you can force delete it:

rm -rf ~/.minikube/machines/

start minikube on hyperkit

minikube start --vm-driver=hyperkit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment