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:
Please click on the Kubernetes tab!
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:
Click Install button to start installation of Kubernetes cluster!
Finish:
Click the Close button, you will see the Docker Engine and Kubernetes running on our machine as follows:
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:
1 |
kubectl version |