WEBVTT 00:00.640 --> 00:03.760 This is the solution video for the services lab. 00:04.850 --> 00:11.930 So the first question we have to calculate the number of services on the system in the space. 00:14.540 --> 00:21.440 So to do that, let's run to get service or as we see can see that there is one. 00:23.930 --> 00:30.440 And the second question is just an information that is the default service created by communities at 00:30.440 --> 00:36.350 launch, click on OK, what is the type of the default at a service? 00:37.610 --> 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. 00:49.070 --> 00:54.420 What is the target port configured for the community service to find this? 00:54.440 --> 00:59.870 We will run Cuba CTL describe as we see Cuban it is. 01:00.830 --> 01:04.070 And here you can see that the target put a six foot four three. 01:09.050 --> 01:11.990 How many labels are configured on the community service? 01:12.970 --> 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 01:17.530 --> 01:22.390 competent as equal to Apsara, the second one is provider is equal to cabinet. 01:22.440 --> 01:25.860 So these are the two labels configured for this service. 01:25.870 --> 01:26.070 So the. 01:26.380 --> 01:26.860 Is to. 01:28.670 --> 01:31.670 How many end points are attached on the equipment company to service? 01:31.700 --> 01:36.800 Again, we can make use of the description and you can see the end points here, which is equal to one. 01:41.190 --> 01:44.370 How many deployments exist on this system now, so let's run. 01:45.450 --> 01:46.320 Kookier. 01:47.730 --> 01:49.110 Get deployment's. 01:50.870 --> 01:57.140 And we can see that that is one deployment by the name of simple wave deployment created in the system, 01:57.140 --> 01:58.280 that default namespace. 02:00.180 --> 02:02.970 What is the image used to create reports on the deployment? 02:04.680 --> 02:12.900 So let's try to describe deployment's simple webapp deployment and repair for image, and here the image 02:12.900 --> 02:17.220 is called cloud webapp red. 02:21.540 --> 02:27.390 Are you able to access the Web API trying to access using the application you have maldito? 02:27.440 --> 02:27.620 No. 02:28.160 --> 02:33.640 So let's click on the tab and here again see that the application is not working. 02:35.970 --> 02:37.580 So the answer is no. 02:39.400 --> 02:44.620 Now we have to create a new service to access the Web applications, so the reason we are not able to 02:44.650 --> 02:50.540 access is access is because we do not have a proper service configured for the deployment. 02:51.040 --> 02:55.030 So let's create a new deployment with these specs provided below. 02:55.540 --> 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. 03:03.980 --> 03:09.230 So let's copy the name of the service and we'll use to expose deployment. 03:10.350 --> 03:17.010 The name of the deployment, the name of it is the name of the service, which is the service. 03:18.320 --> 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 03:28.130 --> 03:31.220 target port as equal eight zero eight zero. 03:33.390 --> 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 03:39.270 --> 03:43.340 creating, will also add the service put, which is a ADRO as well. 03:44.070 --> 03:52.290 And let's use the dry run feature and redirect it to a YAML file called As We See Dot YAML. 03:55.720 --> 04:01.360 And we know that the note put, we use just three zero zero eight zero, so let's edit. 04:02.420 --> 04:09.140 This general configuration file, so we have to update the notepad here on the report section, so let's 04:09.860 --> 04:10.700 update that. 04:13.030 --> 04:15.480 The selector is correct, so we go. 04:15.550 --> 04:24.370 The only thing left as to Adenhart puts will add node port field with the value of three zero zero eight 04:24.370 --> 04:24.730 zero. 04:26.840 --> 04:35.260 That looks right, so let's escape and save and exit this file and let's create the servers using cube 04:35.260 --> 04:38.410 steel applied F as we see doorjambs. 04:39.540 --> 04:42.660 Now, our service has been created called Web Service. 04:43.740 --> 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. 04:51.270 --> 04:56.490 And we are already seeing that we are able to access the Web application, so that was the last question. 04:57.180 --> 04:58.710 Thank you for joining me in this video. 04:59.040 --> 05:00.270 Iljimae makes one.