1
00:00:02,130 --> 00:00:03,030
I wanna ensure

2
00:00:03,030 --> 00:00:07,010
that you fully understand how everything works here.

3
00:00:07,010 --> 00:00:11,780
We just executed this kubectl create deployment command.

4
00:00:11,780 --> 00:00:14,750
This creates a deployment object as I mentioned

5
00:00:14,750 --> 00:00:17,400
and it's then automatically sends it

6
00:00:17,400 --> 00:00:19,820
to our Kubernetes cluster

7
00:00:19,820 --> 00:00:21,450
to the Master Node there,

8
00:00:21,450 --> 00:00:23,990
so to our Control Plane.

9
00:00:23,990 --> 00:00:26,260
And you already learned earlier

10
00:00:26,260 --> 00:00:28,460
in the last course module

11
00:00:28,460 --> 00:00:30,130
that it's this Master Node,

12
00:00:30,130 --> 00:00:32,619
which is responsible for then

13
00:00:32,619 --> 00:00:36,070
creating all the things we need in our cluster

14
00:00:36,070 --> 00:00:37,610
and for, for example

15
00:00:37,610 --> 00:00:41,410
distributing the Pods across worker Nodes.

16
00:00:41,410 --> 00:00:43,770
So indeed, on the Master Mode,

17
00:00:43,770 --> 00:00:46,790
this Scheduler, which I mentioned earlier,

18
00:00:46,790 --> 00:00:49,190
analyzes the currently running Pods

19
00:00:49,190 --> 00:00:52,920
and it finds the best Node for the newly created Pod.

20
00:00:52,920 --> 00:00:55,750
So for the Pods that has to be created

21
00:00:55,750 --> 00:00:58,000
based on this deployment.

22
00:00:58,000 --> 00:00:59,060
And then,

23
00:00:59,060 --> 00:01:00,850
this newly created Pod

24
00:01:00,850 --> 00:01:03,440
will be moved to one of our Worker Nodes.

25
00:01:03,440 --> 00:01:05,390
For example, let's say the bottom one,

26
00:01:05,390 --> 00:01:06,940
because maybe that is the Node

27
00:01:06,940 --> 00:01:10,820
which currently is doing the least amount of work.

28
00:01:10,820 --> 00:01:14,150
This is all done automatically by Kubernetes now,

29
00:01:14,150 --> 00:01:16,750
so that's not something we have to do here.

30
00:01:16,750 --> 00:01:18,330
Now on that Worker Node,

31
00:01:18,330 --> 00:01:20,500
we got this kubelet service,

32
00:01:20,500 --> 00:01:23,480
which I also mentioned in the last course section,

33
00:01:23,480 --> 00:01:25,630
which now manages the Pod here,

34
00:01:25,630 --> 00:01:27,640
starts the Container in the Pod

35
00:01:27,640 --> 00:01:30,550
and basically also monitors this Pod

36
00:01:30,550 --> 00:01:32,760
and checks its health.

37
00:01:32,760 --> 00:01:35,800
Now this part, of course contains the container,

38
00:01:35,800 --> 00:01:37,400
based on the image,

39
00:01:37,400 --> 00:01:38,810
which we specified

40
00:01:38,810 --> 00:01:41,423
when we created this deployment object.

41
00:01:42,440 --> 00:01:44,700
Maybe that was all obvious,

42
00:01:44,700 --> 00:01:48,410
but it is super important that we're all on the same page

43
00:01:48,410 --> 00:01:51,490
and that you fully understand what's happening here

44
00:01:51,490 --> 00:01:54,443
when we run this create deployment command.

45
00:01:55,360 --> 00:01:57,000
So this is what's happening

46
00:01:57,000 --> 00:01:59,940
and that is why we now have a Pod and a Container

47
00:01:59,940 --> 00:02:04,320
running on our Mini Cube development cluster.

48
00:02:04,320 --> 00:02:05,180
With that,

49
00:02:05,180 --> 00:02:09,220
let's now ensure that we can also visit this application

50
00:02:09,220 --> 00:02:12,253
and that we can reach it from outside the cluster.

