Using Kubernetes

Now that we have our Kubernetes cluster up and running on our Docker desktop installation, we can start to interact with it. To start with, we are going to look at the command line that was installed alongside the Docker desktop component, kubectl.

As mentioned, kubectl was installed alongside. The following command will show some information about the client and also the cluster it is connected to:

$ kubectl version

Next, we can run the following to see if kubectl can see our node:

$ kubectl get nodes

Now that we have our ...

Get Mastering Docker - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.