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
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
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
minikube delete
if the previous machine is stuck you can force delete it:
rm -rf ~/.minikube/machines/
minikube start --vm-driver=hyperkit