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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.