This blog shows you how to install Minikube, a tool that runs a single-node Kubernetes cluster in a virtual machine on your personal computer.
To check if virtualization is supported on macOS, run the following command on your terminal.
sysctl -a | grep machdep.cpu.features
If you see
VMX in the output, the VT-x feature is supported on your OS.
Installing minikube on Mac
Make sure that you
kubectl is installed on your machine. Kubectl installation steps.
Install a Hypervisor
You must have one of following hypervisor installed on you machine.
There are 2 ways to install Minikube on macOS.
The easiest way to install Minikube on macOS is using Homebrew:
brew cask install minikube
Using a stand-alone binary
You can also install it on macOS by downloading a stand-alone binary:
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \ && chmod +x minikube
Add the Minikube executable to your path:
sudo mv minikube /usr/local/bin
Following is the command to start minikube.