Minikube is a tool that creates a single node Kubernetes cluster in VirtualBox or Hyper-V (other hypervisors are supported) ready to be used during development of a containerized application. We have shown in Chapter 2, Setting up a Working Environment, how Minikube and with it the tool kubectl
can be installed on your Mac or Windows laptop. As stated, Minikube is a single node Kubernetes cluster and thus the node is, at the same time, a Kubernetes master as well as a worker node.
Let's make sure that Minikube is running with the following command:
$ minikube start
Once Minikube is ready, we can access its single node cluster using kubectl
. And we should see something similar to the following screenshot:
Listing all nodes in Minikube
As mentioned before, we have a single node cluster with a node called minikube
. Don't get confused by the value <none>
in the column ROLES
; the node plays the role of a worker and a master node at the same time.
Now, let's try to...