This is the solution video for the services lab.
So the first question we have to calculate the number of services on the system in the space.
So to do that, let's run to get service or as we see can see that there is one.
And the second question is just an information that is the default service created by communities at
launch, click on OK, what is the type of the default at a service?
So let's go back to the terminal and you can see that the type column has the value of cluster IP.
What is the target port configured for the community service to find this?
We will run Cuba CTL describe as we see Cuban it is.
And here you can see that the target put a six foot four three.
How many labels are configured on the community service?
So, again, we can make use of the same command as before, and I can see that there are two one as
competent as equal to Apsara, the second one is provider is equal to cabinet.
So these are the two labels configured for this service.
So the.
Is to.
How many end points are attached on the equipment company to service?
Again, we can make use of the description and you can see the end points here, which is equal to one.
How many deployments exist on this system now, so let's run.
Kookier.
Get deployment's.
And we can see that that is one deployment by the name of simple wave deployment created in the system,
that default namespace.
What is the image used to create reports on the deployment?
So let's try to describe deployment's simple webapp deployment and repair for image, and here the image
is called cloud webapp red.
Are you able to access the Web API trying to access using the application you have maldito?
No.
So let's click on the tab and here again see that the application is not working.
So the answer is no.
Now we have to create a new service to access the Web applications, so the reason we are not able to
access is access is because we do not have a proper service configured for the deployment.
So let's create a new deployment with these specs provided below.
The name should be Web service type should be not put and the target port and the port should be a 080.
So let's copy the name of the service and we'll use to expose deployment.
The name of the deployment, the name of it is the name of the service, which is the service.
And let's copy the target port and the port, which is eight zero eight zero, so let's add dash dash
target port as equal eight zero eight zero.
I will also add those dash type is equal to not put, because that's the type of service that we are
creating, will also add the service put, which is a ADRO as well.
And let's use the dry run feature and redirect it to a YAML file called As We See Dot YAML.
And we know that the note put, we use just three zero zero eight zero, so let's edit.
This general configuration file, so we have to update the notepad here on the report section, so let's
update that.
The selector is correct, so we go.
The only thing left as to Adenhart puts will add node port field with the value of three zero zero eight
zero.
That looks right, so let's escape and save and exit this file and let's create the servers using cube
steel applied F as we see doorjambs.
Now, our service has been created called Web Service.
So let's go back to the euro and you can see that we have a regular Web page, so click on check.
And we are already seeing that we are able to access the Web application, so that was the last question.
Thank you for joining me in this video.
Iljimae makes one.