Install Kubernetes using Docker on macOS

On macOS, we have several ways to install Kubernetes such as using the Minikube tool or using the Docker. In this tutorial, I introduce you all how to install Kubernetes using Docker!

First of all, of course we need to install Docker on macOS. I have a tutorial to do this, if you do not know then can refer to!

After installing Docker, please click on the icon of Docker on macOS menu bar, then click on menu item Preference … A new window will appear as follows:

Install Kubernetes using Docker on macOS

Please click on the Kubernetes tab!

Install Kubernetes using Docker on macOS

By default, Kubernetes is not enabled when we install Docker. To install Kubernetes, click the Enable Kubernetes button and click the Apply button to enable it!

A window will pop up, asking us to install the Kubernetes cluster as follows:

Install Kubernetes using Docker on macOS

Click Install button to start installation of Kubernetes cluster!

Install Kubernetes using Docker on macOS

Finish:

Install Kubernetes using Docker on macOS

Click the Close button, you will see the Docker Engine and Kubernetes running on our machine as follows:

Install Kubernetes using Docker on macOS

Now, on our machine, we have a standalone Kubernetes server and client. Kubernetes cluster here is a single node cluster!

You can use the kubectl tool (Kubernetes Controller, a command line tool to manage Kubernetes cluster) to check the version of Kubernetes:

Install Kubernetes using Docker on macOS

Add Comment