Appendix A. Minikube
All the recipes in the book that involve a Kubernetes cluster have been tested in minikube; however, they should also work in any other Kubernetes cluster.
Minikube is a tool that makes it easy to run Kubernetes locally instead of in a remote Kubernetes cluster.
In this book, minikube 1.7.3 and Kubernetes 1.17.3 has been used; but again, any other version should be fine because no advanced techniques are used. Minikube requires a hypervisor to be installed. We recommend you use the VirtualBox hypervisor. In our experience, this is the most portable and stable way to run minikube.
How you install minikube, VirtualBox, and kubectl might depend on the system you are running, so we are providing the links where you can find the instructions to install each of these components:
After installing all the software, you can start minikube by opening a terminal window and running the following:
minikube start --vm-driver=virtualbox --memory='8192mb' \--kubernetes-version='v1.17.3'ߙ䠠[serverless] minikube v1.7.3 on Darwin 10.15.3✨ Using the virtualbox driver based on user configuration⌛ Reconfiguring existing host ...ߔ䠠Starting existing virtualbox VM for "default" ...ߐ㠠Preparing Kubernetes v1.17.3 on Docker 19.03.6 ...ߚࠠLaunching Kubernetes ...ߌEnabling addons: dashboard, default-storageclass, storage-provisionerߏ䠠Done! kubectl is now configured to use "default"
Then, configure the docker CLI to use the minikube docker host: ...