Install brew by following the install steps here
Install docker for mac from here and start it
Install VirtualBox from here. A system restart is needed to activate VBox modules after installation
Install kubernetes client by running brew install kubernetes-cli
NOTE: This will delete any previous
minikube
install and everything associated with it
$ minikube stop
$ minikube delete
$ rm -rf /usr/local/bin/minikube
$ brew install minikube
$ minikube start --kubernetes-version v1.19.11 --extra-config=apiserver.authorization-mode=Node,RBAC
Wait few minutes for everything to come up
$ minikube start --kubernetes-version v1.19.11 --extra-config=apiserver.authorization-mode=Node,RBAC --cni=cilium
$ eval $(minikube docker-env)
NOTE: Remember to turn off the
imagePullPolicy: Always
, as otherwise Kubernetes won't use images you've built locally. This meansimagePullPolicy: Never
Grab yourself a coffee and start deploying apps!
$ minikube stop
$ minikube delete
$ minikube --help