This is the solution video for the imperative, come on, slap so in this lab will have to create most
of the objects using the imperative commands in some cases will have to generate Yamal files with imperative
commands first and then create the object using Kubasik to apply or create.
So the first question we have to deploy a pod named Ingenix Dashboard using the image and Genex Alpine.
To do this, let's go back to the tunnel and run still run the name of the port, which is Ingenix Dashboard
image is equal to engine going out by the port has been created.
Next, we have to deploy a pod called Raiders with the Raiders Alpine image with labels, a two tier
as equal to DB.
Again, we'll make use of the similar comment as before Kubek children read this.
That image is equal to where Alpine?
And we'll use the labels TerraCycle to DV, and for that we'll use to labels as equal to tiere as equal
to DBI.
That has created a red spot.
Next, we have to create a service called Redish, their service to expose the previously created radio
spot on board, which is six three seven nine.
To do this, we will run.
Cube Kubica.
Expo's.
Pod Ridder's.
And we'll use that name and the name of the service, which is relist our service, and we are to provide
the port, which is six, seven, nine, and also the target port, which is also six three seven nine
four Alice.
The service has been created.
To verify will run Kuby to describe, as we see our service is service, I can see that it is using
the target put six three seven nine and it has one end point, which is the reddest part.
Next, we are to create a deployment named webapp using the image called cloud slash web app and should
have three replicas.
So we'll run the command cubicle, create deployment.
And that's the image.
It should be called cloud color.
That's the image name.
And the name of the deployment is webapp.
So it has been created.
Now let's use the scale deployment command with replicas as equal to three.
And let's check the answer.
That's good next year to create a new pod called CustomMade Genex using the Ingenix image and expose
it on Containerboard ADRO ADRO.
So to do this, will you see similar command as before capacity run the name of the Polish custom dash
engine next images equal to and Dynex.
And we have to expose it on containerboard, so we'll use the dash dashboard and the water's eight zero
eight zero.
So if Iran keeps a deal described custom Genex.
We'll see that the port uses its razor.
We on next year to create a new space called Def Douchiness, so for those values, it will create an
S and the name of the new name space.
Next, we have to create a new deployment called Riders That Deploy and the Def Dash and last names
with the riders image, and you should have two replicas.
To do this, we will use the command cubes, will create deployment.
And the name of the deployment is the Raiders that deploy.
And the image is raider's.
I made a mistake, double click, that dash dash namespace, we will say to Dev Dash and less and less
click the image to write us.
And we'll use the dry run feature and dash Oyamel to get the deployment definition file.
Now let's edit this file using the editor and concede that the namespace has been set.
This is just to validate that everything is correct.
Everything seems to be in order so we can quit from the sticks, illiterate and.
Yeah, before we do that, we can choose the replicas to to.
To my question and will you still apply the Elfreda's Dorte ammo, and that has created our deployment
with two replicas.
And this is in the dirt and this namespace.
Onto the last question, we have to create a port called SCDP using the image, SCDP, Alpine and the
default namespace.
Next, create a service of the type class stripey by the same name, and the target port should be 80.
And we are to try to do this in as few steps as possible.
We'll try to do this with one single.
Come on.
So let's run the command to run.
The name of the poll should be EBD.
And the images SCDP the Alpine.
And we next have to expose the service, but we should also be using a board ad for the spot, so let's
use that dashboard sequel to at.
And we'll use the word to come on and then run dry, run as equal, declined by Oyamel, the sprint
print out the configuration which it was supposed to create.
And as you can see, it is creating a port board with custom port of 80.
And it's also creating a service with the same name called SCDP.
Which is exactly what we need, so that looks correct, so we can now run the same command without the
dry run or the actual Yamal.
So now I can see that a port called SCDP as well as a service by the same name has been created.
So that should be it.
Let's go and validate.
So let's wait for the report to be here, Ronnie.
Until that happens, the service will not be exposing the end point on the board.
So it's still in container creating stage, so let's wait for it to be, you know, running it.
So now it should be good.
That was the last question.
Thank you for joining me in the studio.
I'll see you in the next one.