1
00:00:00,640 --> 00:00:03,760
This is the solution video for the services lab.

2
00:00:04,850 --> 00:00:11,930
So the first question we have to calculate the number of services on the system in the space.

3
00:00:14,540 --> 00:00:21,440
So to do that, let's run to get service or as we see can see that there is one.

4
00:00:23,930 --> 00:00:30,440
And the second question is just an information that is the default service created by communities at

5
00:00:30,440 --> 00:00:36,350
launch, click on OK, what is the type of the default at a service?

6
00:00:37,610 --> 00:00:44,420
So let's go back to the terminal and you can see that the type column has the value of cluster IP.

7
00:00:49,070 --> 00:00:54,420
What is the target port configured for the community service to find this?

8
00:00:54,440 --> 00:00:59,870
We will run Cuba CTL describe as we see Cuban it is.

9
00:01:00,830 --> 00:01:04,070
And here you can see that the target put a six foot four three.

10
00:01:09,050 --> 00:01:11,990
How many labels are configured on the community service?

11
00:01:12,970 --> 00:01:17,530
So, again, we can make use of the same command as before, and I can see that there are two one as

12
00:01:17,530 --> 00:01:22,390
competent as equal to Apsara, the second one is provider is equal to cabinet.

13
00:01:22,440 --> 00:01:25,860
So these are the two labels configured for this service.

14
00:01:25,870 --> 00:01:26,070
So the.

15
00:01:26,380 --> 00:01:26,860
Is to.

16
00:01:28,670 --> 00:01:31,670
How many end points are attached on the equipment company to service?

17
00:01:31,700 --> 00:01:36,800
Again, we can make use of the description and you can see the end points here, which is equal to one.

18
00:01:41,190 --> 00:01:44,370
How many deployments exist on this system now, so let's run.

19
00:01:45,450 --> 00:01:46,320
Kookier.

20
00:01:47,730 --> 00:01:49,110
Get deployment's.

21
00:01:50,870 --> 00:01:57,140
And we can see that that is one deployment by the name of simple wave deployment created in the system,

22
00:01:57,140 --> 00:01:58,280
that default namespace.

23
00:02:00,180 --> 00:02:02,970
What is the image used to create reports on the deployment?

24
00:02:04,680 --> 00:02:12,900
So let's try to describe deployment's simple webapp deployment and repair for image, and here the image

25
00:02:12,900 --> 00:02:17,220
is called cloud webapp red.

26
00:02:21,540 --> 00:02:27,390
Are you able to access the Web API trying to access using the application you have maldito?

27
00:02:27,440 --> 00:02:27,620
No.

28
00:02:28,160 --> 00:02:33,640
So let's click on the tab and here again see that the application is not working.

29
00:02:35,970 --> 00:02:37,580
So the answer is no.

30
00:02:39,400 --> 00:02:44,620
Now we have to create a new service to access the Web applications, so the reason we are not able to

31
00:02:44,650 --> 00:02:50,540
access is access is because we do not have a proper service configured for the deployment.

32
00:02:51,040 --> 00:02:55,030
So let's create a new deployment with these specs provided below.

33
00:02:55,540 --> 00:03:02,980
The name should be Web service type should be not put and the target port and the port should be a 080.

34
00:03:03,980 --> 00:03:09,230
So let's copy the name of the service and we'll use to expose deployment.

35
00:03:10,350 --> 00:03:17,010
The name of the deployment, the name of it is the name of the service, which is the service.

36
00:03:18,320 --> 00:03:27,350
And let's copy the target port and the port, which is eight zero eight zero, so let's add dash dash

37
00:03:28,130 --> 00:03:31,220
target port as equal eight zero eight zero.

38
00:03:33,390 --> 00:03:39,270
I will also add those dash type is equal to not put, because that's the type of service that we are

39
00:03:39,270 --> 00:03:43,340
creating, will also add the service put, which is a ADRO as well.

40
00:03:44,070 --> 00:03:52,290
And let's use the dry run feature and redirect it to a YAML file called As We See Dot YAML.

41
00:03:55,720 --> 00:04:01,360
And we know that the note put, we use just three zero zero eight zero, so let's edit.

42
00:04:02,420 --> 00:04:09,140
This general configuration file, so we have to update the notepad here on the report section, so let's

43
00:04:09,860 --> 00:04:10,700
update that.

44
00:04:13,030 --> 00:04:15,480
The selector is correct, so we go.

45
00:04:15,550 --> 00:04:24,370
The only thing left as to Adenhart puts will add node port field with the value of three zero zero eight

46
00:04:24,370 --> 00:04:24,730
zero.

47
00:04:26,840 --> 00:04:35,260
That looks right, so let's escape and save and exit this file and let's create the servers using cube

48
00:04:35,260 --> 00:04:38,410
steel applied F as we see doorjambs.

49
00:04:39,540 --> 00:04:42,660
Now, our service has been created called Web Service.

50
00:04:43,740 --> 00:04:49,770
So let's go back to the euro and you can see that we have a regular Web page, so click on check.

51
00:04:51,270 --> 00:04:56,490
And we are already seeing that we are able to access the Web application, so that was the last question.

52
00:04:57,180 --> 00:04:58,710
Thank you for joining me in this video.

53
00:04:59,040 --> 00:05:00,270
Iljimae makes one.
