- [Instructor] Let's get our hands dirty
and install Kubernetes.
I covered the Mac installation in this video,
which is similar to Linux as well.
If you're running on Windows,
go ahead and skip to the next video.
Before we get Kubernetes installed,
we need to get Docker and a hypervisor installed.
If you head on over to the Docker website
and then go to Products, select Docker Desktop.
You'll notice that it's cross-platform.
So not matter whether you're on PC, Mac, or Linux,
you're covered.
I already have it installed on my Mac.
If you don't have it installed,
you'll want to follow the links here
to do so before moving on.
Let me switch over to the terminal
and verify that it's indeed running.
I'll type docker version
and here I notice that I'm running the client version
and Docker Engine Community, version 19.03.5
and from a server perspective,
I'm running Docker Engine Community version 19.03.5.
Your version might be different, and that's okay.
As long as you're at least running 19.03.5,
things should work for this course.
Our next prerequisite is a hypervisor.
If you're not familiar, a hypervisor is an app
that lets you run and manage virtual machines.
One cross-platform solution for this is called VirtualBox.
Here on my machine I've already got it installed.
Installation is pretty straightforward,
just download the installer and run it.
If you don't already have it installed,
please do so now before moving on.
So now let's go ahead and install Kubernetes.
Since I'm doing this on the Mac,
I'm going to click install kubectl on the macOS.
I can download the latest release, copy that,
and I can go to my terminal window,
paste that command,
and this is just basically pulling the latest version
of kubectl from the repository.
That looks like it's done.
Go back to the script here,
make it an executable,
move it to the right path.
The first time you do this it might ask you
for your password, and that's expected.
And let's actually test to make sure that we have
the right version.
So kubectl version client.
This is major version one, minor version 18,
so we're running version 1.18.
Looks good.
The next part is installing Minikube,
so that's actually on the same site.
Under Tools, you can install Minikube.
Once again we're going to do this for the Mac.
We've already set up kubectl,
so that looks good.
And we can either use the brew install method
or download the standalone binary.
I'm going to do the latter.
And this actually downloads the latest binary
for Minikube and also chmods it as well.
So, go back here and finally we're going to move this
to user/local/bin.
All right.
And we can test our cluster
by doing a quick Minikube status.
So it looks like everything is stopped,
which is what we expect
and we can do Minikube version
and this is Minikube version 1.9.2.
So we have all the tools that we need.
Next up we're actually going to go run our first hello world.