WEBVTT

00:00.080 --> 00:07.040
In the past I taught a docker course and within it there is a tutorial that teaches you how to set up

00:07.040 --> 00:08.660
Docker desktop for Windows and Mac.

00:08.660 --> 00:15.620
So I'll just play the tutorial now and once ran from the past is done showing you how to set up Docker

00:15.620 --> 00:20.570
desktop, ran from the present, will take over and show you how to set up a Kubernetes cluster through

00:20.570 --> 00:21.260
Docker Desktop.

00:21.260 --> 00:23.270
Okay, so let's do that now.

00:24.290 --> 00:25.910
Uh, now we're going to install Docker.

00:25.910 --> 00:32.150
So click uh right docker install inside of Google Install the docker engine.

00:32.750 --> 00:33.200
Um.

00:39.530 --> 00:40.670
I'm using a mac.

00:40.670 --> 00:45.380
If you're using a MacBook that has the M1, M2 or M3 chip, whatever.

00:45.380 --> 00:48.170
Uh, click on Docker desktop for Mac with Apple Silicon.

00:48.170 --> 00:51.410
If you're still using a mac with the Intel chip, click on that.

00:52.040 --> 00:54.440
Um, I'm going to click on this one.

00:54.440 --> 00:57.380
I already have Docker installed, but I'll just go through the process with you.

00:57.380 --> 00:59.240
It's actually fairly simple.

00:59.630 --> 01:02.690
So go to my downloads.

01:02.690 --> 01:04.430
Click on the installer.

01:06.020 --> 01:07.220
It should install right away.

01:07.220 --> 01:11.450
It's just going to prompt you to drag this to your applications folder.

01:19.940 --> 01:27.140
All right, um, if I open up the launchpad, I'm going to see Docker right here.

01:33.260 --> 01:40.040
If I click on it, I already have the Docker engine started up and running for you.

01:40.040 --> 01:42.770
It should show a whale icon that's just starting up.

01:42.770 --> 01:44.420
Give it some time to start up.

01:50.840 --> 01:56.510
Okay, once it shows Docker Desktop running, click on sign in slash.

01:56.510 --> 01:57.620
Sign up.

01:57.800 --> 01:59.060
All right.

02:07.100 --> 02:13.730
Um, then I'm going to continue with Google because I already have an account with them.

02:13.730 --> 02:18.050
If you don't have an account, make sure to sign up and then sign back in.

02:18.050 --> 02:18.830
All right.

02:18.830 --> 02:20.990
So I'm going to continue with Google.

02:22.970 --> 02:24.290
It's going to sign me in.

02:24.290 --> 02:25.940
Now I can open Docker.

02:25.940 --> 02:28.250
So this is the Docker dashboard.

02:28.250 --> 02:31.940
And it shows that I'm signed in as are slim 087.

02:31.940 --> 02:39.570
Please do not proceed with this course until you have a Docker account and that you're signed into it

02:39.570 --> 02:42.390
through your local Docker dashboard.

02:42.390 --> 02:47.010
Okay, you can access the dashboard all the same by just clicking on go to dashboard.

02:47.250 --> 02:49.530
Uh, again make sure it shows your username.

02:49.530 --> 02:53.070
Make sure you're logged in once you have that set up.

02:53.310 --> 02:56.100
Uh, this is where all of our containers will show up.

02:56.100 --> 02:58.050
We're going to have visibility to them there.

02:58.050 --> 03:00.390
Well, we're also going to access them through the command line.

03:00.390 --> 03:02.310
But whatever you can also see your image.

03:02.310 --> 03:02.640
All right.

03:02.640 --> 03:03.060
Hey guys.

03:03.060 --> 03:04.860
It's ran from the present.

03:05.190 --> 03:08.700
Um, click on the gear icon in your Docker dashboard.

03:08.700 --> 03:09.360
Okay.

03:09.360 --> 03:11.670
Once you do that go to Kubernetes.

03:11.670 --> 03:16.170
Click Enable Kubernetes, apply and restart okay.

03:16.170 --> 03:17.580
It should take a bit of time.

03:17.580 --> 03:19.050
Not too long.

03:20.250 --> 03:20.730
All right.

03:20.730 --> 03:24.000
Once it stops loading you've enabled Kubernetes.

03:24.000 --> 03:29.730
And what this does is starts a single node cluster when starting Docker desktop.

03:29.730 --> 03:34.830
So I want to distinguish between a single node cluster and a multi node cluster.

03:34.860 --> 03:41.910
A single node cluster means that our personal machine, our laptop or a desktop, whatever you're using

03:41.910 --> 03:46.800
in this case takes up the role of worker node and master node.

03:46.800 --> 03:54.900
But in a production environment what you would do is host a multi node cluster on a cloud provider like

03:55.290 --> 04:01.320
AWS or Azure where you've got many, many worker nodes, many master nodes all working together under

04:01.320 --> 04:06.510
the supervision of the Kubernetes software to achieve container orchestration at scale.

04:06.540 --> 04:10.530
But in this case, because we're just prototyping, we're doing things locally.

04:10.530 --> 04:18.600
We just have a single node cluster where our personal machine is simply running Kubernetes.

04:18.750 --> 04:19.830
All right.

04:19.890 --> 04:25.380
To make sure that everything is working, what I want you to do is actually start by just writing cube

04:25.380 --> 04:26.700
CTL.

04:26.940 --> 04:27.540
All right.

04:27.540 --> 04:32.760
Cube CTL is a command line tool that we use to interact with a Kubernetes cluster.

04:32.760 --> 04:37.800
Which cluster is this cube CTL command line tool interacting with.

04:37.830 --> 04:42.540
You can check that by saying cube CTL config current context.

04:42.540 --> 04:51.750
So our kubectl commands are configured to interact with the Kubernetes cluster that's being hosted locally

04:51.750 --> 04:53.820
by Docker desktop.

04:54.000 --> 04:54.660
All right.

04:54.660 --> 05:01.200
Any kubectl command that we execute is going to go to our local Kubernetes cluster.

05:01.200 --> 05:04.650
And that's pretty much it for setting up Kubernetes.
