1
00:00:00,210 --> 00:00:08,280
This is the solution video for the imperative, come on, slap so in this lab will have to create most

2
00:00:08,280 --> 00:00:14,160
of the objects using the imperative commands in some cases will have to generate Yamal files with imperative

3
00:00:14,160 --> 00:00:19,380
commands first and then create the object using Kubasik to apply or create.

4
00:00:23,320 --> 00:00:31,680
So the first question we have to deploy a pod named Ingenix Dashboard using the image and Genex Alpine.

5
00:00:34,800 --> 00:00:42,470
To do this, let's go back to the tunnel and run still run the name of the port, which is Ingenix Dashboard

6
00:00:43,050 --> 00:00:49,080
image is equal to engine going out by the port has been created.

7
00:00:54,120 --> 00:01:01,800
Next, we have to deploy a pod called Raiders with the Raiders Alpine image with labels, a two tier

8
00:01:01,800 --> 00:01:03,210
as equal to DB.

9
00:01:05,480 --> 00:01:11,300
Again, we'll make use of the similar comment as before Kubek children read this.

10
00:01:13,380 --> 00:01:17,190
That image is equal to where Alpine?

11
00:01:19,360 --> 00:01:26,830
And we'll use the labels TerraCycle to DV, and for that we'll use to labels as equal to tiere as equal

12
00:01:26,830 --> 00:01:27,670
to DBI.

13
00:01:30,140 --> 00:01:32,150
That has created a red spot.

14
00:01:36,480 --> 00:01:42,330
Next, we have to create a service called Redish, their service to expose the previously created radio

15
00:01:42,360 --> 00:01:44,880
spot on board, which is six three seven nine.

16
00:01:47,240 --> 00:01:49,400
To do this, we will run.

17
00:01:51,170 --> 00:01:52,250
Cube Kubica.

18
00:01:53,330 --> 00:01:54,230
Expo's.

19
00:01:55,540 --> 00:01:56,830
Pod Ridder's.

20
00:01:57,810 --> 00:02:04,890
And we'll use that name and the name of the service, which is relist our service, and we are to provide

21
00:02:04,890 --> 00:02:10,260
the port, which is six, seven, nine, and also the target port, which is also six three seven nine

22
00:02:10,260 --> 00:02:10,920
four Alice.

23
00:02:12,760 --> 00:02:14,350
The service has been created.

24
00:02:15,250 --> 00:02:23,800
To verify will run Kuby to describe, as we see our service is service, I can see that it is using

25
00:02:23,800 --> 00:02:27,850
the target put six three seven nine and it has one end point, which is the reddest part.

26
00:02:30,970 --> 00:02:39,250
Next, we are to create a deployment named webapp using the image called cloud slash web app and should

27
00:02:39,250 --> 00:02:40,330
have three replicas.

28
00:02:41,140 --> 00:02:44,710
So we'll run the command cubicle, create deployment.

29
00:02:46,610 --> 00:02:48,110
And that's the image.

30
00:02:50,750 --> 00:02:53,900
It should be called cloud color.

31
00:02:53,930 --> 00:02:55,160
That's the image name.

32
00:02:56,980 --> 00:02:59,680
And the name of the deployment is webapp.

33
00:03:01,780 --> 00:03:02,900
So it has been created.

34
00:03:02,920 --> 00:03:07,030
Now let's use the scale deployment command with replicas as equal to three.

35
00:03:08,880 --> 00:03:11,310
And let's check the answer.

36
00:03:12,840 --> 00:03:20,100
That's good next year to create a new pod called CustomMade Genex using the Ingenix image and expose

37
00:03:20,100 --> 00:03:22,740
it on Containerboard ADRO ADRO.

38
00:03:25,320 --> 00:03:31,290
So to do this, will you see similar command as before capacity run the name of the Polish custom dash

39
00:03:31,300 --> 00:03:34,590
engine next images equal to and Dynex.

40
00:03:36,280 --> 00:03:44,680
And we have to expose it on containerboard, so we'll use the dash dashboard and the water's eight zero

41
00:03:44,680 --> 00:03:45,280
eight zero.

42
00:03:48,020 --> 00:03:51,380
So if Iran keeps a deal described custom Genex.

43
00:03:54,710 --> 00:03:57,910
We'll see that the port uses its razor.

44
00:04:02,230 --> 00:04:09,460
We on next year to create a new space called Def Douchiness, so for those values, it will create an

45
00:04:09,460 --> 00:04:11,920
S and the name of the new name space.

46
00:04:16,380 --> 00:04:23,400
Next, we have to create a new deployment called Riders That Deploy and the Def Dash and last names

47
00:04:23,880 --> 00:04:26,610
with the riders image, and you should have two replicas.

48
00:04:29,200 --> 00:04:35,170
To do this, we will use the command cubes, will create deployment.

49
00:04:38,450 --> 00:04:42,650
And the name of the deployment is the Raiders that deploy.

50
00:04:47,440 --> 00:04:49,630
And the image is raider's.

51
00:04:53,610 --> 00:04:58,980
I made a mistake, double click, that dash dash namespace, we will say to Dev Dash and less and less

52
00:04:58,980 --> 00:05:00,960
click the image to write us.

53
00:05:04,200 --> 00:05:11,280
And we'll use the dry run feature and dash Oyamel to get the deployment definition file.

54
00:05:12,540 --> 00:05:17,760
Now let's edit this file using the editor and concede that the namespace has been set.

55
00:05:17,860 --> 00:05:20,190
This is just to validate that everything is correct.

56
00:05:23,010 --> 00:05:30,360
Everything seems to be in order so we can quit from the sticks, illiterate and.

57
00:05:31,440 --> 00:05:34,020
Yeah, before we do that, we can choose the replicas to to.

58
00:05:35,460 --> 00:05:41,910
To my question and will you still apply the Elfreda's Dorte ammo, and that has created our deployment

59
00:05:41,910 --> 00:05:43,830
with two replicas.

60
00:05:46,960 --> 00:05:49,540
And this is in the dirt and this namespace.

61
00:05:53,660 --> 00:06:00,320
Onto the last question, we have to create a port called SCDP using the image, SCDP, Alpine and the

62
00:06:00,320 --> 00:06:01,280
default namespace.

63
00:06:01,670 --> 00:06:10,370
Next, create a service of the type class stripey by the same name, and the target port should be 80.

64
00:06:10,850 --> 00:06:14,010
And we are to try to do this in as few steps as possible.

65
00:06:14,010 --> 00:06:15,860
We'll try to do this with one single.

66
00:06:15,860 --> 00:06:16,280
Come on.

67
00:06:17,840 --> 00:06:21,020
So let's run the command to run.

68
00:06:22,710 --> 00:06:25,640
The name of the poll should be EBD.

69
00:06:29,330 --> 00:06:31,790
And the images SCDP the Alpine.

70
00:06:34,210 --> 00:06:43,180
And we next have to expose the service, but we should also be using a board ad for the spot, so let's

71
00:06:43,180 --> 00:06:46,540
use that dashboard sequel to at.

72
00:06:47,500 --> 00:06:56,460
And we'll use the word to come on and then run dry, run as equal, declined by Oyamel, the sprint

73
00:06:56,460 --> 00:07:00,040
print out the configuration which it was supposed to create.

74
00:07:00,400 --> 00:07:05,440
And as you can see, it is creating a port board with custom port of 80.

75
00:07:05,830 --> 00:07:09,310
And it's also creating a service with the same name called SCDP.

76
00:07:11,340 --> 00:07:17,880
Which is exactly what we need, so that looks correct, so we can now run the same command without the

77
00:07:18,000 --> 00:07:19,920
dry run or the actual Yamal.

78
00:07:20,940 --> 00:07:26,580
So now I can see that a port called SCDP as well as a service by the same name has been created.

79
00:07:27,210 --> 00:07:28,370
So that should be it.

80
00:07:28,380 --> 00:07:29,730
Let's go and validate.

81
00:07:31,540 --> 00:07:34,230
So let's wait for the report to be here, Ronnie.

82
00:07:35,860 --> 00:07:39,710
Until that happens, the service will not be exposing the end point on the board.

83
00:07:39,730 --> 00:07:44,710
So it's still in container creating stage, so let's wait for it to be, you know, running it.

84
00:07:45,190 --> 00:07:46,460
So now it should be good.

85
00:07:47,800 --> 00:07:49,150
That was the last question.

86
00:07:49,180 --> 00:07:50,980
Thank you for joining me in the studio.

87
00:07:51,040 --> 00:07:52,150
I'll see you in the next one.
