To work with Kubernetes locally, we will use Minikube running on VirtualBox. We will also use the Kubernetes CLI tool known as kubectl a lot. kubectl comes with Docker for macOS, but unfortunately with a version that's too old (at least as of when this chapter was written). Therefore, we need to install a newer version. In total, we need the following:
- Minikube version 1.2 or later
- kubectl version 1.15 or later
- VirtualBox version 6.0 or later
These tools can be installed using Homebrew with the following commands:
brew install kubectl
brew cask install minikube
brew cask install virtualbox
After installing kubectl, run the following command to ensure that the newer version of kubectl is used:
brew link --overwrite kubernetes-cli
The installation of VirtualBox will ask you to rely on the system extensions that come with VirtualBox:
Click...