1
00:00:04,960 --> 00:00:07,180
Let's save changes in this file.

2
00:00:07,180 --> 00:00:15,220
And now let me actually show how to find documentation on how to create specific YAML configuration

3
00:00:15,220 --> 00:00:15,880
files.

4
00:00:16,030 --> 00:00:23,050
Let's go to a web browser and here let's go to Kubernetes dot IO and go here to documentation.

5
00:00:23,050 --> 00:00:28,990
And here I go to reference and here are select Kubernetes API.

6
00:00:30,240 --> 00:00:37,620
And in Kubernetes API, you could select, for example, workload resources and you will find the details

7
00:00:37,620 --> 00:00:44,220
how to describe, for example, ports or create port template or create replica set.

8
00:00:44,760 --> 00:00:46,890
We just created deployment.

9
00:00:46,890 --> 00:00:52,350
Therefore, let's click on deployment section here and you will find the details.

10
00:00:52,350 --> 00:00:55,380
How to create YAML Configuration Files.

11
00:00:55,380 --> 00:01:03,420
If you want to create deployment, API version must be set to APS slash v one and below you will find

12
00:01:03,460 --> 00:01:08,370
other keys which must be present in deployment configuration file.

13
00:01:08,400 --> 00:01:11,460
For example, client must be set to deployment.

14
00:01:11,460 --> 00:01:15,780
Then there was metadata section spec status.

15
00:01:15,780 --> 00:01:23,610
Status, by the way, is filled by Kubernetes automatically and it will be added after you create deployment

16
00:01:23,610 --> 00:01:26,130
based on specific configuration file.

17
00:01:26,760 --> 00:01:34,260
And if I go back to configuration file here, I will find such keys as API version, kind metadata and

18
00:01:34,260 --> 00:01:41,190
spec same keys which are described here API version, kind metadata and spec.

19
00:01:41,190 --> 00:01:48,210
And if you want to get the details about deployment spec, you could click here and you will find that

20
00:01:48,210 --> 00:01:54,960
inside of the spec you have to specify selector template, replicas, strategy, mean ready seconds

21
00:01:54,960 --> 00:01:56,130
and so on.

22
00:01:56,130 --> 00:02:03,300
And if I have a look at this pack here, I will find out that inside of spec in this example, there

23
00:02:03,300 --> 00:02:09,660
was selector and template, selector and template here and both are required.

24
00:02:11,220 --> 00:02:16,550
If you click on template, you will read details about both template spec.

25
00:02:16,560 --> 00:02:23,580
Let's click on it and here you will find that inside of the port template spec, you have to specify

26
00:02:23,610 --> 00:02:27,480
metadata and spec, which is port spec.

27
00:02:27,720 --> 00:02:31,990
And that's what we added here in the template section.

28
00:02:32,010 --> 00:02:40,080
Metadata and spec for the port, let's click on port spec and read details about port specification.

29
00:02:40,110 --> 00:02:46,530
Containers is required and you could add multiple containers in the port specification if you want to

30
00:02:46,530 --> 00:02:47,190
do so.

31
00:02:47,670 --> 00:02:51,900
And here in this spec we have containers, here it is.

32
00:02:52,110 --> 00:02:54,270
Let's click on container here.

33
00:02:54,390 --> 00:02:59,520
And in this container specification you will find name which is required.

34
00:02:59,740 --> 00:03:02,700
That's why we set name as this.

35
00:03:03,210 --> 00:03:07,230
Also, you have to set image for specific container.

36
00:03:08,070 --> 00:03:15,090
Helios Image Resources and ports are also described here on this documentation page.

37
00:03:15,090 --> 00:03:16,860
So here is ports section.

38
00:03:18,210 --> 00:03:22,230
Also you could set, for instance, environment variables for a particular container.

39
00:03:22,740 --> 00:03:28,950
I highly recommend to you to get familiar with documentation and with all options available, and I

40
00:03:28,950 --> 00:03:35,670
just demonstrated to you how you could dig through documentation and find out how to fill different

41
00:03:35,670 --> 00:03:38,190
sections of the configuration file.

