Install Kubernetes

Install Kubernetes

The simplest way to install Kubernetes is to use Docker Desktop for Windows or Docker Desktop for Mac. This comes with the kubectl kubernetes command line tool.

The next recommended way is to use a cloud shell environment like AWS Cloud9 or Google Cloud Shell. These cloud environments dramatically simplify issues that crop up on a laptop or workstation. You can follow the native packagement guide from the official documentation here.

A more advanced method for experts could be to directly download the latest binary. HINT: You probably don’t want to use this method shown in the video unless you are an expert and should use an easier method above. The expert commands are shown below.

Curl command

The curl command Noah uses in the video for Mac is as follows:

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl

Note that the escape characters () in the above may need to be removed for the command to work on your system depending on your settings.

Checking for virtualization

The other command used is:

sysctl -a | grep machdep.cpu.features