1
00:00:05,110 --> 00:00:13,120
And no, let's create the specification for engineers deployment and service because we will deploy

2
00:00:13,120 --> 00:00:19,870
now two different applications, one which will be based on our custom image, and second, which is

3
00:00:19,870 --> 00:00:23,230
based on official Docker image called engineers.

4
00:00:23,560 --> 00:00:31,240
Let's simply copy this file and paste here and let's name this file as an x dot yaml.

5
00:00:31,270 --> 00:00:36,490
And now in this engine x dot yaml file, let's modify names.

6
00:00:36,760 --> 00:00:40,270
Let's again select this and change all occurrences.

7
00:00:40,270 --> 00:00:41,950
And let's name it simply.

8
00:00:41,950 --> 00:00:42,910
Engineers.

9
00:00:43,450 --> 00:00:52,240
Please type exactly as I just did exactly in Genesis, because this name for this service we will utilize

10
00:00:52,240 --> 00:01:00,020
inside of our other deployment, inside of our containers which are running express logs, web server.

11
00:01:00,040 --> 00:01:04,989
We will connect to this deployment by using engine service name.

12
00:01:06,010 --> 00:01:08,500
That's why this name is very important here.

13
00:01:08,980 --> 00:01:16,360
Now, we decided to utilize cluster IP service type for this second deployment.

14
00:01:16,360 --> 00:01:19,710
That's why let's remove type load balancer from here.

15
00:01:19,720 --> 00:01:28,420
By default, cluster IP will be assigned here and let's modify pause section here, let's remove target

16
00:01:28,420 --> 00:01:32,620
port and keep only port and set it to 80.

17
00:01:32,950 --> 00:01:37,180
It is default port where an will run web server.

18
00:01:38,410 --> 00:01:46,150
Also in the deployment section we have to modify image and now it will be simply engineers without your

19
00:01:46,150 --> 00:01:50,950
username because we would like to utilize Default and Phoenix image.

20
00:01:52,120 --> 00:01:59,410
Let's keep resource limits here in place and let's modify here container port to aid like that.

21
00:02:00,190 --> 00:02:04,690
So quantity of the replicas will be, for instance, five instead of three.

22
00:02:05,050 --> 00:02:09,400
Let's save changes here and let's summarize what we did here.

23
00:02:09,699 --> 00:02:13,750
We will create a new service called Engineers.

24
00:02:14,020 --> 00:02:16,900
And name here is important for our setup.

25
00:02:17,960 --> 00:02:24,410
Here is a sports section with single keyboard, and it means that the external port eight will be mapped

26
00:02:24,410 --> 00:02:26,090
to internal port 80.

27
00:02:26,880 --> 00:02:32,940
It is a sport where engine web server is run by default and service type.

28
00:02:32,940 --> 00:02:34,680
Here is cluster IP.

29
00:02:34,710 --> 00:02:40,650
It means that such service will not be available outside of the Kubernetes cluster.

30
00:02:41,340 --> 00:02:47,910
And here in this deployment we utilize official Docker image code and Genesis.

31
00:02:48,330 --> 00:02:54,540
Here is specification for the port containers and container port is set to eight.

32
00:02:55,020 --> 00:02:56,030
That's it.

33
00:02:56,040 --> 00:03:03,900
So we created the two YAML configuration files in Genesis dot YAML and K eight as web to engineers genesis

34
00:03:03,900 --> 00:03:06,930
which utilizes custom built image.

35
00:03:08,240 --> 00:03:09,900
Here is this image name.

