1
00:00:02,290 --> 00:00:04,910
<v Instructor>Now when you have a look at this big picture</v>

2
00:00:04,910 --> 00:00:08,100
at this Kubernetes architecture

3
00:00:08,100 --> 00:00:09,570
which you in the end will set up

4
00:00:09,570 --> 00:00:12,320
and with which Kubernetes will help you,

5
00:00:12,320 --> 00:00:16,380
there is an important differentiation to make.

6
00:00:16,380 --> 00:00:20,250
There are certain things Kubernetes will do for you,

7
00:00:20,250 --> 00:00:24,430
but there also are aspects and things you need to do

8
00:00:24,430 --> 00:00:28,130
in advance in order to then use Kubernetes.

9
00:00:28,130 --> 00:00:31,090
So you need to provide a certain environment

10
00:00:31,090 --> 00:00:33,250
in which Kubernetes is able to run.

11
00:00:33,250 --> 00:00:36,980
And the very important thing you as the developer

12
00:00:36,980 --> 00:00:39,490
or as the administrator have to do,

13
00:00:39,490 --> 00:00:43,270
is you have to create and set up the cluster

14
00:00:43,270 --> 00:00:45,840
and the worker nodes and the master node

15
00:00:45,840 --> 00:00:50,440
on which Kubernetes is then installed and does its thing.

16
00:00:50,440 --> 00:00:52,190
You have to do that.

17
00:00:52,190 --> 00:00:55,830
You have to install all the Kubernetes software

18
00:00:55,830 --> 00:00:57,140
on these nodes.

19
00:00:57,140 --> 00:01:01,050
So on these machines which are part of your cluster.

20
00:01:01,050 --> 00:01:04,970
And you have to configure all these things Kubernetes needs.

21
00:01:04,970 --> 00:01:07,820
Depending on the cloud provider you might be using,

22
00:01:07,820 --> 00:01:11,180
you also might need to set up extra resources

23
00:01:11,180 --> 00:01:14,160
your Kubernetes cluster might need eventually.

24
00:01:14,160 --> 00:01:18,780
Like a load balancer or certain filesystems services.

25
00:01:18,780 --> 00:01:20,250
And we're going to have a look at that

26
00:01:20,250 --> 00:01:22,240
throughout the next sections, of course.

27
00:01:22,240 --> 00:01:24,050
I will show you how to set up

28
00:01:24,050 --> 00:01:27,730
both a local testing environment on your local machine,

29
00:01:27,730 --> 00:01:29,120
as well as to set up

30
00:01:29,120 --> 00:01:32,880
the required resources on AWS as an example.

31
00:01:32,880 --> 00:01:34,320
You just have to be aware

32
00:01:34,320 --> 00:01:38,690
of the fact that you need to prepare the cluster.

33
00:01:38,690 --> 00:01:41,670
But even though this might sound very challenging right now,

34
00:01:41,670 --> 00:01:43,720
you will learn throughout this course

35
00:01:43,720 --> 00:01:45,720
that it's actually quite easy.

36
00:01:45,720 --> 00:01:48,430
Because both for local development

37
00:01:48,430 --> 00:01:51,950
as well as with AWS as an example,

38
00:01:51,950 --> 00:01:54,260
you get certain tools and services

39
00:01:54,260 --> 00:01:57,300
which make creating that cluster very important.

40
00:01:57,300 --> 00:02:00,410
It is important to understand though that Kubernetes

41
00:02:00,410 --> 00:02:03,043
will not set up these resources.

42
00:02:04,040 --> 00:02:07,650
Instead Kubernetes will use these resources.

43
00:02:07,650 --> 00:02:09,730
Once it is installed and set up,

44
00:02:09,730 --> 00:02:12,510
Kubernetes will manage these pods.

45
00:02:12,510 --> 00:02:16,820
So these things, these units, which contain your containers.

46
00:02:16,820 --> 00:02:20,130
It will create them, automatically distribute them

47
00:02:20,130 --> 00:02:23,070
to take advantage of the available resources.

48
00:02:23,070 --> 00:02:26,200
It will monitor and restart them if they fail.

49
00:02:26,200 --> 00:02:28,690
It will manage the running deployment.

50
00:02:28,690 --> 00:02:32,100
It will ensure that it runs smoothly and that it stays up

51
00:02:32,100 --> 00:02:34,880
and running, and it will manage all of that for you.

52
00:02:34,880 --> 00:02:37,410
It will start the containers for you.

53
00:02:37,410 --> 00:02:40,271
As I said earlier it's like Docker Compose,

54
00:02:40,271 --> 00:02:43,760
just for deploying your containers.

55
00:02:43,760 --> 00:02:47,030
Where Docker Compose kind of struggles with that,

56
00:02:47,030 --> 00:02:49,890
Kubernetes is really geared towards that.

57
00:02:49,890 --> 00:02:52,120
And therefore it will do all of that.

58
00:02:52,120 --> 00:02:54,210
But just as Docker Compose

59
00:02:54,210 --> 00:02:56,760
doesn't configure your local computer.

60
00:02:56,760 --> 00:02:58,850
It doesn't install Docker there.

61
00:02:58,850 --> 00:03:02,050
It doesn't set up your local computer at all.

62
00:03:02,050 --> 00:03:05,630
It just uses your local computer to then start containers

63
00:03:05,630 --> 00:03:08,630
just as Docker compose does that locally.

64
00:03:08,630 --> 00:03:10,892
Kubernetes also needs a certain environment

65
00:03:10,892 --> 00:03:13,870
to do that on remote machines.

66
00:03:13,870 --> 00:03:16,500
So that's an important differentiation to make.

67
00:03:16,500 --> 00:03:18,020
And I will show you both;

68
00:03:18,020 --> 00:03:20,420
how to set up a deployment with Kubernetes

69
00:03:20,420 --> 00:03:23,250
and how to configure it so that it does manage

70
00:03:23,250 --> 00:03:27,050
your containers for you, and how to set up a cluster.

71
00:03:27,050 --> 00:03:28,620
I just want you to be aware

72
00:03:28,620 --> 00:03:32,020
of the fact that this big picture which I'm showing you

73
00:03:32,020 --> 00:03:35,160
requires some work from your side as well.

74
00:03:35,160 --> 00:03:37,980
That Kubernetes will not create that cluster.

75
00:03:37,980 --> 00:03:39,900
It will just use it.

76
00:03:39,900 --> 00:03:41,570
But with that, let's dig deeper

77
00:03:41,570 --> 00:03:44,020
into the worker and monster notes to take a

78
00:03:44,020 --> 00:03:47,663
closer look at what exactly Kubernetes will do in there.

