This is the solution video for the cameras and arguments Labbe.
So for the first question, we have to find the number of parts on the system, so let's go to the terminal
and type Kubasik, you'll get Pott's.
And you can see that there is already a port deployed, which is called a one two dash sleeper.
So the answer is one.
Next, find out the command used to run the port open to the sleeper.
To find this, we can run the command cubicle, describe pod and the pod name open to the sleeper,
and let's look for the command.
And that allows to sleep forty eight hundred.
So select that from the options.
Next, we had to create a pod with the one to image, to run a container, to sleep for five thousand
seconds, and to do this will modify a file that has been provided already.
And it's called one Daschle bardash to Dot Yamal.
So go to the terminal first, let's copy the name of the file.
And we are in the root directory, so editors file.
And we are going to add a command section here.
And the value should be sleep five thousand.
Save this file.
And let's try to create the pod.
So looks like I've made a mistake, there is an unknown field called command, so there was a typo in
the file.
It should be command, not commands.
So let's correct that and try that again.
This time, the pot has been created.
We can validate that the pot has been created correctly with the command by using the capacity to describe.
And yes, it has the command or sleep five thousand, so let's go ahead and check the solution.
Moving on, the next question, we have to create a pod using another file called one to the sleeper
dash three dot yama.
There's something wrong with that, so you have to fix it.
So let's copy the whole file and we'll attempt to create the pot using you still apply and look for
errors.
So there is an error here, so let's go and check the old file.
And you'll see that in the command section, the seconds have not been described correctly, so it should
be within the court's.
So it seems that save the file and try again.
Let's move on to the next question.
And we have to update the pod one to dash lipo, three to sleep for two thousand seconds.
So first, let's delete the existing pod.
I want to actually put a story weight for the report to be terminated completely, and once that is
done, we will edit the file again and change the command to two thousand.
This can take a few seconds, so be patient.
Yeah, so the plot has been terminated.
So let's update the file.
And change the seconds from twelve hundred to 2000.
Now, see this file?
And recreate the pod using, you still apply.
Following on.
Now we have to inspect the DOKO file, which is located at slash road slash webapp color and find out
the command that is Run Addicott startup.
So to do this, we will open the file and that location.
And look for the entry point, which is defined within the file.
So if you look at the bottom here, the entry point is set to be torn apart by.
So let's choose that as our answer.
Now we have to inspect another DOKO file called The File to give in at the same location, and we have
to find the command that will run on the container startups the same as before.
So let's inspect the DOKO file to.
So in this case, you'll notice that Faltu has bought entry point and command, so effectively the command
that would be around during Katrina startup Earth Don laptop.
Why dash dash color red.
Now let's inspect the two files under the directory web app Dascalu, Dash two, and what is the command
that will be run during the continuous start up?
Let's go and check those two files.
So copied at rhenium go back to route.
And let's go inside this directory and list the files so there is a DOKO file, too, and there is a
YAML file for that part.
So first, let's inspect the file to.
And it's the same as the last question.
So it has got an entry point by Tom Abtahi and it has got a command section, dash color red.
Now, let's inspect the Yamal file, which will be used to create the port.
So the pod will make use of the image created from that dock file, and in this case you'll see that
the pod has just one come on field, which is dash, dash, color, green.
So if you remember from the lecture, you know that the command field and the governor is for definition
files will override the entry point.
And there is no argument section provided here.
So effectively the command that will be run during the start up of the spotter's dash dash color green.
So let's select that as our answer.
For the next question, we have to do the same thing in another directory called Webapp Dascalu, Dash
three and find out the command that will run during the Katrina startup.
So let's copy that barratry.
And change directory into Web App Ashqelon three.
And let's check out the files.
The first thing as before, will check out the DOKO file.
And it's exactly the same as before.
There is an entry point by Tom Abdul Pivo and the command which comes out of that is that culture and
the values red.
Now, let's check out the definition file.
And here you'll notice that the poor definition has both come on and arguments, so effectively, it
will override everything that is there in the fall.
So during the start up, the command that would be run is Python Abdul Vivi, followed by the arguments,
which is color as equal to pink.
So let's choose that as the answer.
Bite on apple pie color is equal to pink.
Finally, we have to create a pod with the given specification.
By default, it displays a blue background said, given command line arguments to change it to green.
So the name is webapp green image is called cloud slash webapp color, and we have to provide command
line arguments of Ashutosh color is a to green.
So let's do that, go back to the terminal.
And let's create a poor definition for using Kubek children, name of the iPod Touch image, just go
to our Web app Color.
And will you see that as a dry run and I shall yaml to create a poor definition for let's store it in
Port Yamal.
Forgot to restart the never, so make sure that you are D'Adam.
Now let's update Deepwater YAML file.
And under the container section, I'm going to add.
A new field.
For arguments as equal to.
Color, as we call the green.
I can just copy it from the question that color is equal to green.
Now, let's go the spot.
And check that it has been created correctly from arguably he will describe and inspect the arguments
that are said to dash dash the color is called to green.
That's why they did the answer.
So that's correct.
Thank you for joining me in this lab solution we do.
I'll see you in the next one.