1
00:00:00,750 --> 00:00:04,710
This is the solution video for the multi container ports lab.

2
00:00:06,970 --> 00:00:12,310
So for the first question, we have to identify the number of containers running in the red pod.

3
00:00:13,920 --> 00:00:16,320
So let's try and keep still, get parts.

4
00:00:19,610 --> 00:00:25,940
And under the red column, you'll see that zero out of three already, so the total number of containers

5
00:00:25,940 --> 00:00:27,410
and the red bottles, three.

6
00:00:31,590 --> 00:00:35,030
Identify the name of the containers running in the blue pod.

7
00:00:37,530 --> 00:00:42,820
So let's run the same as before, you'll see that another part has been created called Blue, which

8
00:00:42,840 --> 00:00:44,580
would have two containers in it.

9
00:00:45,750 --> 00:00:48,450
And let's try and Cube still describe part blue.

10
00:00:49,650 --> 00:00:52,110
And look at the name of the continuous.

11
00:00:53,470 --> 00:00:57,710
So you'll see that there is one called Navy and the other one is still.

12
00:01:07,220 --> 00:01:10,380
Create a multi container port with two containers.

13
00:01:10,400 --> 00:01:14,270
The name should be yellow container, one should be called lemon.

14
00:01:17,020 --> 00:01:24,190
And with the image of the Xbox, the to name is gold and continued to should use Raiders image, so

15
00:01:24,190 --> 00:01:26,950
let's create that using Kubasik children.

16
00:01:28,150 --> 00:01:33,460
Yellow, the name of the port, and we'll use the image for the first container, which is Zyvox.

17
00:01:34,530 --> 00:01:41,070
And restart as equal to never to make sure that it's the pod which is created by this command and will

18
00:01:41,070 --> 00:01:44,820
use the dash as dry run national yaml and.

19
00:01:45,800 --> 00:01:47,390
Redirected to a file.

20
00:01:50,120 --> 00:01:51,610
Now let's update the file.

21
00:01:53,630 --> 00:01:59,090
So it has one container already, we can add multi containers imperatively, so we'll have to do it

22
00:01:59,090 --> 00:02:05,810
this way, redirect the output of the command that we ran to a file and then open it and update it so

23
00:02:05,810 --> 00:02:07,910
that we can add additional containers.

24
00:02:09,240 --> 00:02:15,690
So the first thing we have to do is change the name of the container to lemon because the name yellow

25
00:02:15,690 --> 00:02:17,110
is out of the pod.

26
00:02:17,880 --> 00:02:23,430
Now add additional image and the name for the second container.

27
00:02:23,430 --> 00:02:26,610
So the image is reduced and the name should be gold.

28
00:02:29,780 --> 00:02:31,850
That should be it, let's create this spot now.

29
00:02:36,980 --> 00:02:43,010
The board has been created, we get on Kubasik, still describe pod yellow and inspected.

30
00:02:44,410 --> 00:02:46,240
So you can see the gold container here.

31
00:02:46,480 --> 00:02:50,500
There it is, image and the lemon container to be Zyvox image.

32
00:02:52,900 --> 00:02:54,070
Let's inspect the answer.

33
00:02:58,750 --> 00:03:05,700
Now for the next question, we have deployed an application logging stack in the elastic stack namespace

34
00:03:05,710 --> 00:03:06,550
or inspected.

35
00:03:07,850 --> 00:03:15,620
So let's go back and check out the new namespace that has been created as a new one called Elastic Dastagir,

36
00:03:15,620 --> 00:03:17,280
which has been created three minutes ago.

37
00:03:17,960 --> 00:03:25,880
Now let's try and cube steel dash and elastic stack get parts and service so you'll see that there are

38
00:03:25,880 --> 00:03:32,300
three parts in Total App Elastic and Kibwana and there are two services created, one for ElasticSearch

39
00:03:32,300 --> 00:03:33,150
and one for Kibwana.

40
00:03:33,170 --> 00:03:35,030
Both are nopal type services.

41
00:03:37,510 --> 00:03:38,500
So click on Orkan.

42
00:03:40,370 --> 00:03:48,290
Inspect the Kibwana, you are using the link, you shouldn't see any logs for now, so let's go and

43
00:03:48,290 --> 00:03:53,240
click on the URL called Kibwana and wait for it to load up.

44
00:03:56,630 --> 00:04:02,060
And once it's loaded up, you can click on this cover and you'll see that there is nothing to index

45
00:04:02,060 --> 00:04:02,350
here.

46
00:04:03,380 --> 00:04:05,690
So there's no data and that as of now.

47
00:04:10,310 --> 00:04:14,840
So let's move on to the next question will be creating a sidecar container.

48
00:04:17,920 --> 00:04:24,310
So there is an app part and the elastic namespace, let's first identify the number of containers in

49
00:04:24,310 --> 00:04:28,780
it, so we'll run the same commanders before Kubek till Dash and get part.

50
00:04:29,170 --> 00:04:33,300
But you can already see that it has got one out of one container.

51
00:04:33,310 --> 00:04:34,600
So the answer is one.

52
00:04:37,680 --> 00:04:45,540
The application outputs log to the file log about log of the logs and try to identify the user having

53
00:04:45,540 --> 00:04:47,070
issues with the login.

54
00:04:50,300 --> 00:04:54,680
So we can do this by running you your logs, commander, as well, so let's do that.

55
00:04:55,580 --> 00:05:02,870
Secure an elastic stack logs app and you can see the logs print at your screen and looks like user five

56
00:05:03,590 --> 00:05:07,400
has failed to log in as the account is logged due to many failed attempts.

57
00:05:07,410 --> 00:05:09,500
So the answer should be user five.

58
00:05:16,020 --> 00:05:23,910
Next, let's edit the airport and add a sidecar, continue to it so that it can send logs to ElasticSearch.

59
00:05:25,370 --> 00:05:28,190
More dialogue, volume to be site car container.

60
00:05:29,980 --> 00:05:36,580
So we're going to create an additional container in the app pod and the name of the container is Sidecar.

61
00:05:36,740 --> 00:05:43,630
There's the image which has been provided file be configured, and we're also going to attach a volume

62
00:05:43,630 --> 00:05:44,890
to the container.

63
00:05:45,710 --> 00:05:48,400
That's something you can see in the architecture diagram below.

64
00:05:48,640 --> 00:05:56,800
So we are going to add a sidecar Volbeat container to the app port and all of those are some the elastic

65
00:05:56,980 --> 00:05:58,330
stack namespace.

66
00:06:01,590 --> 00:06:06,660
So just as before, let's get the definition filed first for the app part.

67
00:06:08,530 --> 00:06:11,200
Police, the national YAML.

68
00:06:12,910 --> 00:06:16,750
And redirected to a file called App, Not YAML.

69
00:06:17,780 --> 00:06:22,090
Now we can delete the app pod, we don't know, we don't need it anymore.

70
00:06:23,890 --> 00:06:25,870
Wait for it to dominate completely.

71
00:06:26,970 --> 00:06:29,790
And now let's update the poor definition.

72
00:06:41,400 --> 00:06:44,100
Now you'll see that the container.

73
00:06:45,160 --> 00:06:51,460
Which was already there by the name of app has called the volume mount, the name of the volume mount

74
00:06:51,700 --> 00:06:53,650
as log dash volume.

75
00:06:54,880 --> 00:06:58,120
And it's mounted at slashed log in the airport.

76
00:06:59,910 --> 00:07:03,070
So this is the location we checked earlier using the cube catalogues.

77
00:07:03,130 --> 00:07:06,690
Come on, this is where the logs were created.

78
00:07:08,080 --> 00:07:10,450
Now, let's add an additional.

79
00:07:11,440 --> 00:07:12,130
Container.

80
00:07:16,970 --> 00:07:19,670
Now, put that in the wrong place, so elated that.

81
00:07:21,980 --> 00:07:23,660
To create a new image.

82
00:07:26,650 --> 00:07:28,210
Pisit here.

83
00:07:29,870 --> 00:07:34,010
And the name of the new container should be Sidecar.

84
00:07:37,850 --> 00:07:43,760
And it should also have a volume mount to add the volume mounts.

85
00:07:45,480 --> 00:07:48,270
And the monopod will copy it from the question.

86
00:07:51,670 --> 00:07:54,130
It's like water logged even some later.

87
00:07:56,650 --> 00:08:00,850
And the name of the volume is Logush Volume.

88
00:08:02,100 --> 00:08:05,820
And here is the William definition file that's using a hotspot.

89
00:08:07,960 --> 00:08:13,810
Which is Lajoie log web app that's already being used by the app part earlier.

90
00:08:17,220 --> 00:08:19,710
Let's save this file and try to create the.

91
00:08:25,620 --> 00:08:28,230
So it looks like I made a mistake on line 19.

92
00:08:29,360 --> 00:08:30,380
So let's correct that.

93
00:08:40,450 --> 00:08:41,530
And Islamistic.

94
00:08:43,270 --> 00:08:44,640
The spacing was incorrect.

95
00:08:46,320 --> 00:08:48,510
Let's save that and try to recreate the part.

96
00:08:50,080 --> 00:08:51,800
But, Sam, the pod has been created.

97
00:08:58,840 --> 00:09:00,880
Let's move on to the final question.

98
00:09:02,480 --> 00:09:06,710
So we can inspect the cabana right now and we should be able to see logs.

99
00:09:07,830 --> 00:09:11,220
So let's go back to the Kibwana dashboard.

100
00:09:13,180 --> 00:09:14,290
Click on Discover.

101
00:09:15,740 --> 00:09:20,690
And here we can create a new index pattern, so I'm just going to use Oliker.

102
00:09:22,030 --> 00:09:23,170
So enter Star.

103
00:09:26,410 --> 00:09:28,540
Next step and create the index battle.

104
00:09:29,570 --> 00:09:32,840
So, again, they use a time stamp or we can create it at a later point.

105
00:09:32,870 --> 00:09:37,190
Our purpose is just to see if the logs are being shipped from ElasticSearch to Kobana.

106
00:09:38,600 --> 00:09:42,830
So once the index pattern has been created, we can go back to discover.

107
00:09:48,290 --> 00:09:51,650
And here we can see the logs from our pod.

108
00:10:01,700 --> 00:10:02,770
So click on OK?

109
00:10:03,800 --> 00:10:05,870
Thanks for joining me and the solution we do.

110
00:10:05,990 --> 00:10:07,970
I'll see you in the next one.
