From Segfault
Jump to navigation Jump to search


minikube is a nice way to get started in the Kubernetes world, there were a few bumps getting it running on a not-so-current of macOS though. The easiest way to install on macOS would be via Homebrew:

brew cask install minikube

Of course it needs a hypervisor too and minikube can make use of an existing VirtualBox installation, let's use[1] the hyperkit driver instead:

$ brew install hyperkit
hyperkit: A full installation of Xcode.app 9.0 is required to compile
this software. Installing just the Command Line Tools is not sufficient.

Xcode 9.0 cannot be installed on macOS 10.11.
You must upgrade your version of macOS.
Error: An unsatisfied requirement failed this build.

$ sw_vers -productVersion

While we do have a current-enough version of macOS installed, we're lacking a current version of Xcode. So let's forget the Homebrew install and compile from source:

git clone https://github.com/moby/hyperkit hyperkit-git
cd hyperkit-git
git checkout v0.20170904                           # The last version to work with macOS 10.11.6

sudo install -o root -g wheel -m 4755 build/hyperkit /usr/local/bin/

We also need the hyperkit driver:

curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit
sudo install -o root -g wheel -m 4755 docker-machine-driver-hyperkit /usr/local/bin/

And with that we should be able to start minikube with the hyperkit hypervisor:

minikube start --vm-driver hyperkit