1
00:00:00,450 --> 00:00:03,870
This is the solution video for the cameras and arguments Labbe.

2
00:00:05,940 --> 00:00:11,100
So for the first question, we have to find the number of parts on the system, so let's go to the terminal

3
00:00:11,100 --> 00:00:13,260
and type Kubasik, you'll get Pott's.

4
00:00:15,480 --> 00:00:21,120
And you can see that there is already a port deployed, which is called a one two dash sleeper.

5
00:00:22,380 --> 00:00:23,880
So the answer is one.

6
00:00:26,180 --> 00:00:30,200
Next, find out the command used to run the port open to the sleeper.

7
00:00:33,520 --> 00:00:39,990
To find this, we can run the command cubicle, describe pod and the pod name open to the sleeper,

8
00:00:40,720 --> 00:00:42,970
and let's look for the command.

9
00:00:44,070 --> 00:00:46,320
And that allows to sleep forty eight hundred.

10
00:00:48,070 --> 00:00:49,870
So select that from the options.

11
00:00:52,850 --> 00:00:59,120
Next, we had to create a pod with the one to image, to run a container, to sleep for five thousand

12
00:00:59,120 --> 00:01:04,630
seconds, and to do this will modify a file that has been provided already.

13
00:01:04,640 --> 00:01:07,880
And it's called one Daschle bardash to Dot Yamal.

14
00:01:09,200 --> 00:01:14,110
So go to the terminal first, let's copy the name of the file.

15
00:01:16,350 --> 00:01:21,360
And we are in the root directory, so editors file.

16
00:01:23,110 --> 00:01:26,260
And we are going to add a command section here.

17
00:01:27,410 --> 00:01:30,680
And the value should be sleep five thousand.

18
00:01:32,070 --> 00:01:33,030
Save this file.

19
00:01:34,270 --> 00:01:37,240
And let's try to create the pod.

20
00:01:43,840 --> 00:01:49,120
So looks like I've made a mistake, there is an unknown field called command, so there was a typo in

21
00:01:49,120 --> 00:01:49,580
the file.

22
00:01:49,630 --> 00:01:51,570
It should be command, not commands.

23
00:01:51,580 --> 00:01:53,950
So let's correct that and try that again.

24
00:01:58,730 --> 00:02:01,040
This time, the pot has been created.

25
00:02:02,660 --> 00:02:09,260
We can validate that the pot has been created correctly with the command by using the capacity to describe.

26
00:02:10,330 --> 00:02:17,800
And yes, it has the command or sleep five thousand, so let's go ahead and check the solution.

27
00:02:23,980 --> 00:02:30,380
Moving on, the next question, we have to create a pod using another file called one to the sleeper

28
00:02:30,430 --> 00:02:31,580
dash three dot yama.

29
00:02:32,250 --> 00:02:34,390
There's something wrong with that, so you have to fix it.

30
00:02:36,520 --> 00:02:45,220
So let's copy the whole file and we'll attempt to create the pot using you still apply and look for

31
00:02:45,220 --> 00:02:45,760
errors.

32
00:02:49,130 --> 00:02:53,840
So there is an error here, so let's go and check the old file.

33
00:03:00,920 --> 00:03:06,380
And you'll see that in the command section, the seconds have not been described correctly, so it should

34
00:03:06,380 --> 00:03:07,390
be within the court's.

35
00:03:08,750 --> 00:03:11,750
So it seems that save the file and try again.

36
00:03:21,950 --> 00:03:23,660
Let's move on to the next question.

37
00:03:27,250 --> 00:03:33,040
And we have to update the pod one to dash lipo, three to sleep for two thousand seconds.

38
00:03:38,470 --> 00:03:40,660
So first, let's delete the existing pod.

39
00:03:41,680 --> 00:03:48,430
I want to actually put a story weight for the report to be terminated completely, and once that is

40
00:03:48,430 --> 00:03:55,900
done, we will edit the file again and change the command to two thousand.

41
00:03:57,030 --> 00:03:59,730
This can take a few seconds, so be patient.

42
00:04:01,250 --> 00:04:03,260
Yeah, so the plot has been terminated.

43
00:04:04,550 --> 00:04:06,080
So let's update the file.

44
00:04:07,670 --> 00:04:12,560
And change the seconds from twelve hundred to 2000.

45
00:04:13,570 --> 00:04:14,560
Now, see this file?

46
00:04:15,680 --> 00:04:18,800
And recreate the pod using, you still apply.

47
00:04:21,970 --> 00:04:22,630
Following on.

48
00:04:24,440 --> 00:04:31,310
Now we have to inspect the DOKO file, which is located at slash road slash webapp color and find out

49
00:04:31,310 --> 00:04:34,190
the command that is Run Addicott startup.

50
00:04:35,250 --> 00:04:38,700
So to do this, we will open the file and that location.

51
00:04:42,730 --> 00:04:49,420
And look for the entry point, which is defined within the file.

52
00:04:50,500 --> 00:04:55,930
So if you look at the bottom here, the entry point is set to be torn apart by.

53
00:04:59,790 --> 00:05:02,240
So let's choose that as our answer.

54
00:05:07,230 --> 00:05:14,790
Now we have to inspect another DOKO file called The File to give in at the same location, and we have

55
00:05:14,790 --> 00:05:19,140
to find the command that will run on the container startups the same as before.

56
00:05:19,170 --> 00:05:21,360
So let's inspect the DOKO file to.

57
00:05:25,880 --> 00:05:33,170
So in this case, you'll notice that Faltu has bought entry point and command, so effectively the command

58
00:05:33,170 --> 00:05:36,880
that would be around during Katrina startup Earth Don laptop.

59
00:05:36,890 --> 00:05:39,320
Why dash dash color red.

60
00:05:46,020 --> 00:05:53,190
Now let's inspect the two files under the directory web app Dascalu, Dash two, and what is the command

61
00:05:53,400 --> 00:05:55,450
that will be run during the continuous start up?

62
00:05:55,590 --> 00:05:57,690
Let's go and check those two files.

63
00:05:58,020 --> 00:06:01,290
So copied at rhenium go back to route.

64
00:06:04,200 --> 00:06:10,980
And let's go inside this directory and list the files so there is a DOKO file, too, and there is a

65
00:06:11,280 --> 00:06:12,840
YAML file for that part.

66
00:06:13,140 --> 00:06:15,270
So first, let's inspect the file to.

67
00:06:21,390 --> 00:06:24,670
And it's the same as the last question.

68
00:06:24,780 --> 00:06:33,390
So it has got an entry point by Tom Abtahi and it has got a command section, dash color red.

69
00:06:34,680 --> 00:06:38,640
Now, let's inspect the Yamal file, which will be used to create the port.

70
00:06:40,590 --> 00:06:46,590
So the pod will make use of the image created from that dock file, and in this case you'll see that

71
00:06:47,010 --> 00:06:51,810
the pod has just one come on field, which is dash, dash, color, green.

72
00:06:52,500 --> 00:06:59,460
So if you remember from the lecture, you know that the command field and the governor is for definition

73
00:06:59,460 --> 00:07:01,410
files will override the entry point.

74
00:07:01,830 --> 00:07:04,190
And there is no argument section provided here.

75
00:07:04,530 --> 00:07:11,970
So effectively the command that will be run during the start up of the spotter's dash dash color green.

76
00:07:15,900 --> 00:07:17,990
So let's select that as our answer.

77
00:07:24,460 --> 00:07:30,010
For the next question, we have to do the same thing in another directory called Webapp Dascalu, Dash

78
00:07:30,040 --> 00:07:33,850
three and find out the command that will run during the Katrina startup.

79
00:07:33,860 --> 00:07:36,010
So let's copy that barratry.

80
00:07:37,550 --> 00:07:41,360
And change directory into Web App Ashqelon three.

81
00:07:43,380 --> 00:07:45,280
And let's check out the files.

82
00:07:45,390 --> 00:07:49,170
The first thing as before, will check out the DOKO file.

83
00:07:50,320 --> 00:07:52,400
And it's exactly the same as before.

84
00:07:52,450 --> 00:08:00,410
There is an entry point by Tom Abdul Pivo and the command which comes out of that is that culture and

85
00:08:00,410 --> 00:08:01,210
the values red.

86
00:08:02,220 --> 00:08:04,200
Now, let's check out the definition file.

87
00:08:08,800 --> 00:08:15,190
And here you'll notice that the poor definition has both come on and arguments, so effectively, it

88
00:08:15,190 --> 00:08:17,510
will override everything that is there in the fall.

89
00:08:18,340 --> 00:08:25,180
So during the start up, the command that would be run is Python Abdul Vivi, followed by the arguments,

90
00:08:25,180 --> 00:08:27,250
which is color as equal to pink.

91
00:08:29,500 --> 00:08:31,710
So let's choose that as the answer.

92
00:08:32,700 --> 00:08:35,040
Bite on apple pie color is equal to pink.

93
00:08:36,890 --> 00:08:40,100
Finally, we have to create a pod with the given specification.

94
00:08:41,240 --> 00:08:47,870
By default, it displays a blue background said, given command line arguments to change it to green.

95
00:08:49,160 --> 00:08:56,090
So the name is webapp green image is called cloud slash webapp color, and we have to provide command

96
00:08:56,090 --> 00:08:59,180
line arguments of Ashutosh color is a to green.

97
00:09:03,510 --> 00:09:06,600
So let's do that, go back to the terminal.

98
00:09:12,720 --> 00:09:21,690
And let's create a poor definition for using Kubek children, name of the iPod Touch image, just go

99
00:09:21,690 --> 00:09:23,490
to our Web app Color.

100
00:09:27,480 --> 00:09:35,670
And will you see that as a dry run and I shall yaml to create a poor definition for let's store it in

101
00:09:35,670 --> 00:09:36,570
Port Yamal.

102
00:09:39,200 --> 00:09:43,710
Forgot to restart the never, so make sure that you are D'Adam.

103
00:09:45,640 --> 00:09:48,010
Now let's update Deepwater YAML file.

104
00:09:50,780 --> 00:09:53,960
And under the container section, I'm going to add.

105
00:09:55,160 --> 00:09:55,910
A new field.

106
00:09:57,150 --> 00:09:58,980
For arguments as equal to.

107
00:10:01,390 --> 00:10:03,010
Color, as we call the green.

108
00:10:06,020 --> 00:10:10,610
I can just copy it from the question that color is equal to green.

109
00:10:17,130 --> 00:10:18,510
Now, let's go the spot.

110
00:10:25,750 --> 00:10:31,120
And check that it has been created correctly from arguably he will describe and inspect the arguments

111
00:10:31,270 --> 00:10:34,570
that are said to dash dash the color is called to green.

112
00:10:36,480 --> 00:10:37,700
That's why they did the answer.

113
00:10:38,810 --> 00:10:39,590
So that's correct.

114
00:10:40,070 --> 00:10:42,950
Thank you for joining me in this lab solution we do.

115
00:10:43,220 --> 00:10:44,650
I'll see you in the next one.
