9 videos 📅 2024-12-16 09:00:00 Asia/Brunei
2:25:36
2024-12-16 09:21:57
2:03:59
2024-12-16 11:06:33
1:46:52
2024-12-16 13:50:28
1:56:02
2024-12-17 09:35:43
1:52:29
2024-12-17 09:39:32
1:51:17
2024-12-17 13:36:38
1:35:13
2024-12-18 08:59:20
23:23
2024-12-18 11:50:59
1:47:49
2024-12-18 13:41:04

Visit the Docker and Kubernetes Training Course course recordings page

United Arab Emirates - Docker and Kubernetes on AWS

                WEBVTT

00:00:01.580 --> 00:00:19.040
Gene, you're good, then we're talking about CK, you're good, APT remove, APT remove docker.io,

00:00:19.180 --> 00:00:28.820
choose yes, charge, what about you, okay, good, so now what we'll now do is type

00:00:28.820 --> 00:00:37.980
exit, type exit, now are you back to your initial box, yeah, now login to the

00:00:37.980 --> 00:00:43.700
machine of the other, which is a bigger size, so let me use the command, go to

00:00:43.700 --> 00:00:51.940
the location first, cd home student dm underscore details,

00:00:54.000 --> 00:00:56.100
one second, I'll bring that from the path of it,

00:01:10.700 --> 00:01:19.620
so close the window and come back to close the terminal everything, close it and in the main

00:01:20.740 --> 00:01:28.560
your box which are connected, in that click on terminal, do you all see student at your name,

00:01:29.480 --> 00:01:40.180
everyone, yes, in this now go to cd home student and the dm underscore details,

00:01:40.900 --> 00:01:42.640
so be in this location,

00:01:45.620 --> 00:01:57.140
and now ssh-ip.pem username open to and the bigger one, be careful in here,

00:01:57.900 --> 00:02:07.600
so you won't use a bigger one, for example this is mine, 13, use us and press

00:02:07.600 --> 00:02:09.840
it, and it will be connected,

00:02:30.900 --> 00:02:36.880
so let's continue, so now what we do is,

00:02:37.600 --> 00:02:42.520
first step one is sudo su-hide

00:02:42.520 --> 00:02:45.300
sudo space su-space-hide

00:02:46.320 --> 00:02:48.220
now let me talk about the steps

00:02:50.460 --> 00:02:57.180
access module 2 labs everyone please open this go to module 2

00:02:57.180 --> 00:03:04.240
labs and under that access the first one

00:03:04.240 --> 00:03:09.680
we'll talk about lab one open this yeah now i'll explain this is i made a very

00:03:09.680 --> 00:03:12.560
simple team which is follow steps will be easier for you

00:03:12.560 --> 00:03:17.260
so right now we only have three machines so tomorrow if you want to do

00:03:17.260 --> 00:03:21.140
yourself you have to create three bms like open to mention the steps

00:03:21.920 --> 00:03:25.220
now right now we are logged in already yeah

00:03:25.220 --> 00:03:28.460
so in case you log in yourself and put you using this

00:03:28.460 --> 00:03:32.900
now we're going to set the host names we're going to install this

00:03:32.900 --> 00:03:37.680
and we have a script the script is going to install

00:03:37.680 --> 00:03:40.940
configure kubelet others go ahead and say fifth step

00:03:40.940 --> 00:03:45.260
all this is for continuity which we saw the plugins

00:03:45.260 --> 00:03:52.020
the kubelet kubeadm all these is part of the script you write in the

00:03:52.020 --> 00:03:56.100
script and then we done the script

00:03:56.100 --> 00:03:59.960
making permissions once the script is run

00:03:59.960 --> 00:04:03.900
we observe it and then we control the version of kubeadm

00:04:03.900 --> 00:04:10.580
kubelet and kubesatl on the master yeah but first do the step let's go

00:04:10.580 --> 00:04:14.020
step by step so for this open the document

00:04:14.680 --> 00:04:21.380
start from the third step three four five fifth one file name all

00:04:21.380 --> 00:04:23.960
these must be inside the script starting

00:04:23.960 --> 00:04:28.040
from curl till this step you see before

00:04:29.560 --> 00:04:32.860
all these steps before wq you have to copy the script

00:04:32.860 --> 00:04:39.240
save it and then we say run it permissions and then run the script

00:04:39.960 --> 00:04:45.440
and then you observe the outputs yeah let's get started

00:04:47.220 --> 00:04:51.320
host name cpl this is a set of host name

00:04:52.840 --> 00:04:53.940
like master

00:05:00.860 --> 00:05:03.360
now how do we confirm that this is working

00:05:04.040 --> 00:05:08.880
so we can type in tic-tac-rash

00:05:10.500 --> 00:05:11.620
data master

00:05:17.020 --> 00:05:21.940
now the next step is we have to run those commands

00:05:23.120 --> 00:05:26.960
run these two commands you can also copy multiple commands at once copy

00:05:26.960 --> 00:05:32.160
both the commands at once copy it and run this

00:05:37.540 --> 00:05:39.780
you can copy both the commands at once

00:05:41.480 --> 00:05:45.680
so this is going to update and it's going to install the utilities which

00:05:45.680 --> 00:05:49.480
are required for you to download the kubernetes repo

00:05:52.440 --> 00:05:53.820
so

00:05:53.820 --> 00:05:57.320
say okay say this is okay

00:05:58.520 --> 00:06:01.480
let install this

00:06:08.120 --> 00:06:09.940
just press this is okay

00:06:13.300 --> 00:06:14.540
okay

00:06:17.380 --> 00:06:24.920
now just press enter press enter on a keyboard

00:06:28.740 --> 00:06:32.220
just press enter enter enter enter enter

00:06:35.100 --> 00:06:35.660
okay

00:06:35.660 --> 00:06:41.820
yeah we're good everyone okay now the next step is we have to write in the

00:06:41.820 --> 00:06:47.020
script yeah so vi any names are like

00:06:47.020 --> 00:06:50.840
contain any just a name and then a d dot sh so i'm writing

00:06:50.840 --> 00:06:53.880
a script to install the software easily

00:06:53.880 --> 00:06:57.900
the vi the name of script and the script name could be anything which

00:06:57.900 --> 00:07:01.220
you and press enter

00:07:02.540 --> 00:07:04.340
now press r

00:07:11.660 --> 00:07:16.480
that's from before copy from this comment

00:07:16.480 --> 00:07:23.780
before and copy till this one fs tab

00:07:23.780 --> 00:07:29.300
swap fs tab copy till there and just copy there just right click and it'll

00:07:29.300 --> 00:07:31.920
get pasted or you can paste will open to one

00:07:31.920 --> 00:07:35.820
okay click on paste and observe again from where you get

00:07:35.820 --> 00:07:38.420
started observe from

00:07:39.640 --> 00:07:42.200
you're starting from it here

00:07:44.200 --> 00:07:45.780
now you say paste

00:07:48.300 --> 00:07:50.820
so it does from

00:07:54.840 --> 00:07:56.440
before till

00:07:57.260 --> 00:08:01.040
the fs tab are we good

00:08:03.120 --> 00:08:11.180
okay so now what we do is escape colon wq escape colon wq

00:08:12.180 --> 00:08:15.940
now you want to run the script in linux you have to give permissions

00:08:15.940 --> 00:08:20.140
so we're giving permissions to run the script chmod

00:08:20.140 --> 00:08:27.660
700 and the finding this user tab chmod is for changing permissions

00:08:27.660 --> 00:08:31.660
700 is your permissions and the script name

00:08:31.660 --> 00:08:35.680
and press enter what happened you can also observe if you do ls-l

00:08:35.680 --> 00:08:40.460
and the file name it's the permissions the user has complete

00:08:40.460 --> 00:08:45.800
permissions read write and execute to run or do

00:08:45.800 --> 00:08:48.980
any operations from the container it requires permission now run the

00:08:48.980 --> 00:08:53.680
script dot forward slash and script name

00:08:54.500 --> 00:08:59.380
dot forward slash script name and press enter

00:08:59.380 --> 00:09:01.540
okay does it work

00:09:04.360 --> 00:09:06.380
i think good

00:09:07.400 --> 00:09:10.540
so it's going to configure you can observe in here it's going to

00:09:10.540 --> 00:09:13.780
download container d it's going to install cube

00:09:13.780 --> 00:09:17.040
blade you see it's not a cube blade

00:09:18.120 --> 00:09:21.380
so when that's packages through all these

00:09:21.380 --> 00:09:24.480
required we're going to do all these in your script

00:09:28.540 --> 00:09:29.820
click enter

00:09:34.680 --> 00:09:38.900
now confirm the versions of each one which we install so first one is

00:09:38.900 --> 00:09:41.780
container d so container d

00:09:46.420 --> 00:09:53.300
next one is cubeadm version

00:09:54.220 --> 00:09:56.800
so when installing 28

00:09:57.860 --> 00:10:02.600
you want to check cube blade hyphen hyphen version

00:10:05.120 --> 00:10:05.600
version

00:10:05.600 --> 00:10:09.960
and also cubectl space version

00:10:18.340 --> 00:10:23.260
right no no no it is cube blade hyphen hyphen version it will give you space

00:10:23.260 --> 00:10:25.700
let me check because all it must work fine let me just

00:10:25.700 --> 00:10:29.600
let me use nothing no no run the script

00:10:30.480 --> 00:10:34.960
one second run the script one second one second so do ls

00:10:34.960 --> 00:10:41.200
type remove the clear type in ls yes can you

00:10:42.240 --> 00:10:49.120
do a cat cat yeah just type in co and tab

00:10:49.120 --> 00:10:56.040
type in co co co c for char yeah tab press the tab button dot sh

00:10:57.000 --> 00:11:02.960
yeah yeah let's see the content go up use apparel go up i think good

00:11:02.960 --> 00:11:10.800
type in clear type clear okay type in ls hyphen l space hyphen l

00:11:10.800 --> 00:11:16.880
yeah enter enter all good can you do a dot dot forward slash

00:11:16.880 --> 00:11:21.740
yeah see yeah enter don't do anything let's leave it off

00:11:21.740 --> 00:11:27.320
don't stop what does it say is it done can see

00:11:27.320 --> 00:11:30.040
choose yes choose yes

00:11:54.240 --> 00:12:01.540
space hyphen version good cubeadm space version no hyphen hyphen

00:12:01.540 --> 00:12:05.500
no hyphen hyphen for this just cubeadm space version yeah enter

00:12:05.500 --> 00:12:12.120
good now cubelet hyphen hyphen version or cubectl version cubectl space

00:12:12.120 --> 00:12:15.680
version yeah cube cubelet space hyphen hyphen enter

00:12:15.680 --> 00:12:25.320
yeah now cube cubectl space version cubectl cubectl yeah be

00:12:27.940 --> 00:12:35.980
bectl c t l t yeah no no no again hyphen

00:12:35.980 --> 00:12:42.820
no hyphen okay you're good okay others you're good ck get the

00:12:43.460 --> 00:12:51.140
connection last one that's fine go over later okay what about chance what's

00:12:51.140 --> 00:12:56.100
happening okay good fine let's proceed now the next step is

00:12:56.880 --> 00:13:00.920
we have to do a very similar step on the worker nodes

00:13:02.120 --> 00:13:07.260
yeah so what you can do is uh you need to play around in here be careful so

00:13:07.260 --> 00:13:11.100
you can again click on the terminal window the terminal window

00:13:11.100 --> 00:13:15.320
does it open one more screen everyone

00:13:18.340 --> 00:13:23.860
yeah click click the terminal that is open one more screen is

00:13:23.860 --> 00:13:29.000
student user yes now login to the first

00:13:29.000 --> 00:13:29.620
session

00:13:46.780 --> 00:13:49.760
and type in the ip of the first one

00:14:02.000 --> 00:14:03.400
okay

00:14:03.400 --> 00:14:22.160
still here

00:14:24.480 --> 00:14:31.180
Now in the document now go down and now we have the steps what is supposed to do on the work of one.

00:14:31.740 --> 00:14:38.140
Same steps you're going to use work of one, the script and confirm. Very similar steps.

00:14:49.840 --> 00:14:58.380
So I think one step is not sure for some reason cut once again before you go to the next step is one step you see this cut for some reasons.

00:14:59.180 --> 00:15:03.200
This step is not sure how it is going to cut. Let me again update it.

00:15:03.200 --> 00:15:16.800
So this step the full step. So can you update this in your worker session after hostname copy this and a worker node session for some reason it's not here.

00:15:16.800 --> 00:15:24.460
So we can make it four next one is fine. Do app get update, install and then proceed.

00:15:24.920 --> 00:15:28.720
Do this on both the worker nodes. First one make it worker one, other one make it worker two.

00:16:16.020 --> 00:16:16.620
Do this on both the worker nodes.

00:16:46.020 --> 00:16:46.620
Do this on both the worker nodes.

00:17:01.220 --> 00:17:07.880
Run the script. You're not installing kubectl in this. You're not installing it here.

00:17:07.880 --> 00:17:12.880
So once it's done and confirm the versions of everything except the kubectl.

00:17:51.220 --> 00:17:54.540
Charge any questions. Run the script now.

00:17:54.540 --> 00:17:58.800
. . forward slash and that's fine.

00:17:59.020 --> 00:18:03.040
Yeah, just type in C O and tab. Yeah, and something even wrong.

00:18:03.320 --> 00:18:04.620
Let's see why is it happening.

00:18:05.840 --> 00:18:08.460
We're in some mistake. Yes, what did you do?

00:18:13.160 --> 00:18:14.120
Let's see.

00:18:15.000 --> 00:18:16.400
Let's see.

00:18:17.680 --> 00:18:23.300
Can type in hostname type in history, please type in history.

00:18:27.480 --> 00:18:32.200
Come down. Come down. What is that? Why did the demon reload those chips?

00:18:33.080 --> 00:18:36.180
1991. What is the purpose of this? Was it there in the document? Okay, no problem.

00:18:36.520 --> 00:18:39.580
Can type in hostname. Just type in hostname. Let's proceed.

00:18:40.240 --> 00:18:42.700
Confirm the versions, contain any all of them.

00:18:44.100 --> 00:18:46.580
Confirm the versions of all the software. All the steps.

00:18:47.860 --> 00:18:51.040
Are we good with worker one?

00:18:53.340 --> 00:18:56.320
Make it as worker two and proceed.

00:19:39.860 --> 00:19:40.580
Yes.

00:19:40.580 --> 00:19:59.160
Yes, the other mission. Make it as worker two.

00:20:00.520 --> 00:20:04.360
Change this except it's a worker one and worker two. That's it.

00:20:42.520 --> 00:20:43.920
Okay.

00:20:59.660 --> 00:21:01.060
Okay.

00:21:16.800 --> 00:21:18.200
Okay.

00:21:31.560 --> 00:21:32.960
Okay.

00:21:46.320 --> 00:21:47.720
Okay.

00:22:11.340 --> 00:22:11.900
Okay.

00:22:12.120 --> 00:22:13.280
I think we're good.

00:22:15.160 --> 00:22:16.560
Yes.

00:22:24.280 --> 00:22:25.040
Mission.

00:22:28.620 --> 00:22:30.020
Yes.

00:22:32.520 --> 00:22:35.560
Space in.

00:22:36.840 --> 00:22:38.080
On the master mission.

00:22:39.120 --> 00:22:45.140
On the master.

00:22:45.140 --> 00:22:53.260
One day on the master.

00:23:10.240 --> 00:23:11.640
Okay.

00:23:14.440 --> 00:23:15.160
Okay.

00:23:19.760 --> 00:23:21.660
Copy the token. The last two lines.

00:23:21.960 --> 00:23:25.920
The last two lines. Copy this to notepad.

00:23:26.660 --> 00:23:29.920
Copy that to notepad. Highlight it.

00:23:30.180 --> 00:23:34.000
Copy that to notepad.

00:23:34.000 --> 00:23:40.340
Copy that to notepad. Highlight it.

00:23:40.820 --> 00:23:44.840
Now the next step is you're supposed to run the next three commands.

00:23:45.440 --> 00:23:46.520
The documents go down.

00:23:47.000 --> 00:23:47.560
Command.

00:23:49.080 --> 00:23:50.000
Get a right click.

00:23:50.740 --> 00:23:50.960
Right.

00:23:54.860 --> 00:23:56.840
What do you do this?

00:23:56.840 --> 00:23:58.340
This is green like this.

00:23:58.340 --> 00:24:00.780
So use your.

00:24:00.900 --> 00:24:03.160
Mouse and your keyboard.

00:24:04.460 --> 00:24:06.000
And then highlight like this.

00:24:07.600 --> 00:24:10.000
And then right click and copy.

00:24:11.740 --> 00:24:12.360
Good. Good.

00:24:14.160 --> 00:24:18.100
You're not able to paste using a laptop of office.

00:24:19.980 --> 00:24:20.820
Okay.

00:24:23.620 --> 00:24:24.920
Why? What happens?

00:24:25.400 --> 00:24:25.860
Okay.

00:24:26.360 --> 00:24:28.020
Can you paste in the chat history?

00:24:28.480 --> 00:24:28.880
Let's check with.

00:24:32.920 --> 00:24:33.840
In notepad.

00:24:34.000 --> 00:24:34.400
Okay, fine.

00:24:34.820 --> 00:24:35.480
So let.

00:24:46.120 --> 00:24:47.640
Let's do something.

00:24:48.460 --> 00:24:49.380
We'll come back with it.

00:24:49.720 --> 00:24:50.440
I'll resolve this.

00:24:50.600 --> 00:24:51.420
Let it be like this.

00:24:51.420 --> 00:24:52.040
Let's proceed.

00:24:54.280 --> 00:24:54.600
Okay.

00:24:54.600 --> 00:24:58.040
One second on the desktop of where logged in.

00:24:58.280 --> 00:24:59.380
Do you have a notepad?

00:24:59.480 --> 00:25:00.300
One second.

00:25:01.820 --> 00:25:03.620
Are you trying to copy to your laptop?

00:25:03.760 --> 00:25:07.100
Are you trying to paste it on your desktop?

00:25:07.200 --> 00:25:08.140
Which one are you trying to do?

00:25:12.280 --> 00:25:13.600
Where are you trying to copy?

00:25:13.760 --> 00:25:14.600
To your laptop?

00:25:14.600 --> 00:25:17.800
Or are you trying to copy to the Ubuntu desktop?

00:25:17.940 --> 00:25:18.960
Which one are you trying to copy?

00:25:21.600 --> 00:25:22.020
Okay.

00:25:22.720 --> 00:25:24.880
If not, I think.

00:25:26.380 --> 00:25:28.280
So do we have a notepad or something in here?

00:25:28.300 --> 00:25:29.740
One second to just confirm.

00:25:40.660 --> 00:25:41.040
Okay.

00:25:41.040 --> 00:25:42.980
Can you right click in this box?

00:25:42.980 --> 00:25:45.420
This is create document.

00:25:47.320 --> 00:25:49.420
This is in this desktop.

00:25:50.420 --> 00:25:52.520
Right click click on.

00:26:02.300 --> 00:26:03.180
Okay.

00:26:03.760 --> 00:26:04.060
Welcome.

00:26:06.020 --> 00:26:07.160
I'll help you out later.

00:26:08.760 --> 00:26:09.300
Okay.

00:26:09.480 --> 00:26:11.200
Now the next step is.

00:26:12.400 --> 00:26:15.160
We have to run in those three next commands.

00:26:16.120 --> 00:26:17.400
So run in these three commands.

00:26:17.500 --> 00:26:20.280
Run these three commands on the master.

00:26:21.260 --> 00:26:22.520
Just copy and paste.

00:26:47.520 --> 00:26:47.980
Yeah.

00:26:48.160 --> 00:26:48.400
Yeah.

00:26:48.520 --> 00:26:48.740
Yes.

00:27:26.980 --> 00:27:28.380
Okay.

00:27:28.380 --> 00:27:28.620
Okay.

00:27:43.480 --> 00:27:43.680
Okay.

00:27:43.980 --> 00:27:49.460
Now type in kubectl hyphen hyphen version.

00:27:50.760 --> 00:27:52.460
Run the command.

00:27:53.620 --> 00:27:56.820
Type in kubectl no hyphen hyphen version.

00:27:57.900 --> 00:27:59.980
Now you see that the error is gone.

00:28:00.160 --> 00:28:01.240
Before you got an error message.

00:28:01.540 --> 00:28:03.980
It means it is properly configured now.

00:28:05.540 --> 00:28:07.340
Everyone, are we good till here?

00:28:10.900 --> 00:28:11.280
Yeah.

00:28:11.360 --> 00:28:11.840
Good step.

00:28:12.240 --> 00:28:13.280
No, no, no.

00:28:13.420 --> 00:28:13.780
One second.

00:28:14.020 --> 00:28:14.500
One second.

00:28:14.500 --> 00:28:15.680
And see.

00:28:18.020 --> 00:28:19.600
Don't copy this command.

00:28:20.440 --> 00:28:22.360
Charles, what are you trying to do?

00:28:23.020 --> 00:28:25.120
Why are you running these commands?

00:28:26.900 --> 00:28:27.440
Type in clear.

00:28:28.080 --> 00:28:28.820
I'll help you out.

00:28:28.980 --> 00:28:29.520
Type in clear.

00:28:30.400 --> 00:28:30.940
Please type clear.

00:28:31.000 --> 00:28:31.720
Don't even do anything.

00:28:32.140 --> 00:28:32.840
Do a control c.

00:28:33.580 --> 00:28:35.040
Now copy the three commands.

00:28:35.480 --> 00:28:37.740
The next three commands I gave you.

00:28:37.940 --> 00:28:39.960
Are you understanding which command I'm talking about?

00:28:40.180 --> 00:28:40.920
Let me give you a chat.

00:28:41.620 --> 00:28:43.120
The chat I'm going to paste you.

00:28:43.460 --> 00:28:45.060
Just copy those three commands.

00:28:45.560 --> 00:28:46.300
The chat I gave you.

00:28:47.540 --> 00:28:49.080
Just right click and paste.

00:28:50.220 --> 00:28:50.840
Click paste.

00:28:51.340 --> 00:28:51.860
Enter.

00:28:53.140 --> 00:28:53.360
Yes.

00:28:53.600 --> 00:29:03.220
So now what you do is type in kubectl kubectl space version.

00:29:03.400 --> 00:29:03.840
You're good.

00:29:04.100 --> 00:29:04.480
Fine.

00:29:04.920 --> 00:29:07.920
So now what we do is next command.

00:29:09.320 --> 00:29:10.360
Run the apply command.

00:29:10.360 --> 00:29:11.360
Run the apply command everyone.

00:29:23.460 --> 00:29:27.640
Does it say just add it?

00:29:31.140 --> 00:29:31.660
Gene.

00:29:33.180 --> 00:29:33.900
What's happening?

00:29:34.720 --> 00:29:35.120
That.

00:29:36.960 --> 00:29:37.120
Okay.

00:29:37.120 --> 00:29:37.960
Okay.

00:29:38.860 --> 00:29:41.440
Charles will do it.

00:29:41.840 --> 00:29:42.900
The coverage in the chat.

00:29:43.120 --> 00:29:45.760
Just right click and paste it.

00:29:48.060 --> 00:29:48.540
Enter.

00:29:49.940 --> 00:29:50.340
Yes.

00:29:51.040 --> 00:29:51.520
Okay.

00:29:52.080 --> 00:29:54.860
So now what we do is check if your master is ready.

00:29:55.000 --> 00:29:58.120
So go ahead and do.

00:29:59.260 --> 00:30:02.600
Kubectl get nodes on the master machine.

00:30:04.000 --> 00:30:05.540
Kubectl get nodes.

00:30:07.400 --> 00:30:08.120
Is it ready?

00:30:09.200 --> 00:30:09.580
Okay.

00:30:09.860 --> 00:30:10.100
Fine.

00:30:10.320 --> 00:30:13.920
So now what you do is you have the token now.

00:30:14.340 --> 00:30:15.280
Except Charles will help you out.

00:30:15.540 --> 00:30:18.220
Just copy the token from your notepad.

00:30:18.420 --> 00:30:19.260
Complete token.

00:30:20.580 --> 00:30:23.500
And run the token on your worker nodes.

00:30:23.560 --> 00:30:25.540
Copy the token which you had done before.

00:30:25.540 --> 00:30:28.620
And go to the worker machines.

00:30:30.500 --> 00:30:32.220
And paste it.

00:30:35.800 --> 00:30:37.140
And press enter.

00:30:38.620 --> 00:30:40.480
Do it on both the nodes.

00:30:52.960 --> 00:30:53.760
It will get added.

00:30:54.380 --> 00:30:56.140
Now go to the master.

00:30:56.700 --> 00:30:58.500
And again do get nodes.

00:30:59.300 --> 00:31:02.340
And you must be seeing all the nodes up and running.

00:31:05.040 --> 00:31:05.720
Have a good.

00:31:07.420 --> 00:31:07.940
Okay.

00:31:08.180 --> 00:31:08.580
Yes, Charles.

00:31:08.800 --> 00:31:10.660
Now let's be explained.

00:31:11.200 --> 00:31:12.140
Charles, are you?

00:31:12.200 --> 00:31:13.280
What are you going to do now?

00:31:15.860 --> 00:31:16.360
One second.

00:31:16.620 --> 00:31:17.700
What are you going to do now?

00:31:17.900 --> 00:31:18.840
So close this.

00:31:20.160 --> 00:31:23.120
So now what you do is you can run a command.

00:31:26.400 --> 00:31:29.140
Run this command now.

00:31:29.380 --> 00:31:30.460
Run this command.

00:31:31.160 --> 00:31:31.740
Running it command.

00:31:31.900 --> 00:31:32.500
Did you get a token?

00:31:32.720 --> 00:31:32.860
Yes.

00:31:32.960 --> 00:31:33.320
One second.

00:31:34.640 --> 00:31:35.620
Copy from this command.

00:31:36.260 --> 00:31:37.040
No, not from there.

00:31:37.520 --> 00:31:38.220
Start from start.

00:31:38.460 --> 00:31:38.780
Yes.

00:31:39.160 --> 00:31:39.740
From that.

00:31:39.860 --> 00:31:41.660
The experiment is completely complete.

00:31:42.240 --> 00:31:43.540
Starting not from this.

00:31:43.640 --> 00:31:44.060
Yes.

00:31:45.720 --> 00:31:46.340
K is missing.

00:31:47.920 --> 00:31:48.220
K.

00:31:48.600 --> 00:31:49.020
K.

00:31:49.500 --> 00:31:49.780
Yes.

00:31:51.180 --> 00:31:51.820
Right click.

00:31:53.200 --> 00:31:53.640
Copy.

00:31:54.540 --> 00:31:55.680
Now go to worker one.

00:31:55.760 --> 00:31:56.660
Worker one machine.

00:31:58.080 --> 00:31:58.520
Maximize.

00:32:03.460 --> 00:32:04.440
Do the same other machine.

00:32:06.360 --> 00:32:07.860
You did some mistake.

00:32:08.140 --> 00:32:10.260
I think you did some additional steps.

00:32:10.320 --> 00:32:12.180
What did you do before the work?

00:32:12.200 --> 00:32:13.200
Initial worker node.

00:32:13.360 --> 00:32:14.740
Something you have done some mistakes.

00:32:15.840 --> 00:32:15.980
Okay.

00:32:15.980 --> 00:32:17.080
Let me figure it out.

00:32:17.140 --> 00:32:19.280
So can you go to worker one machine?

00:32:19.560 --> 00:32:20.300
Maximize the worker one.

00:32:20.440 --> 00:32:20.880
Maximize.

00:32:20.880 --> 00:32:22.000
So can you do.

00:32:22.420 --> 00:32:23.740
Can you run the command again?

00:32:24.100 --> 00:32:26.240
Host name CTL hyphen once more.

00:32:26.720 --> 00:32:26.880
Host name.

00:32:28.440 --> 00:32:29.000
CTL.

00:32:29.120 --> 00:32:29.200
No.

00:32:30.700 --> 00:32:30.920
Host name.

00:32:30.920 --> 00:32:31.140
Host name.

00:32:34.380 --> 00:32:34.940
CTL.

00:32:35.000 --> 00:32:35.500
Space.

00:32:37.140 --> 00:32:38.760
Set hyphen host name.

00:32:39.940 --> 00:32:40.080
Set.

00:32:40.540 --> 00:32:40.660
Set.

00:32:40.820 --> 00:32:41.180
The CT.

00:32:41.340 --> 00:32:42.160
Just no hyphen.

00:32:43.000 --> 00:32:43.560
That.

00:32:43.840 --> 00:32:45.000
Host name CTL.

00:32:45.140 --> 00:32:45.980
One space.

00:32:46.260 --> 00:32:46.680
Set.

00:32:47.700 --> 00:32:48.260
Hyphen.

00:32:49.380 --> 00:32:49.800
After set.

00:32:49.840 --> 00:32:50.440
No space.

00:32:51.520 --> 00:32:52.400
After set.

00:32:53.940 --> 00:32:54.380
Hyphen.

00:32:54.640 --> 00:32:55.080
Host name.

00:32:55.660 --> 00:32:56.100
Space.

00:32:57.060 --> 00:32:57.500
Worker one.

00:32:57.680 --> 00:32:58.120
Enter.

00:32:59.340 --> 00:32:59.520
Yeah.

00:32:59.520 --> 00:33:00.680
Type in exec bash.

00:33:02.160 --> 00:33:04.860
Now use the app arrow and try to join the command again.

00:33:06.580 --> 00:33:08.580
Just use the app arrow and try to join the command again.

00:33:08.760 --> 00:33:09.560
This is the app arrow.

00:33:12.120 --> 00:33:12.560
Up.

00:33:13.280 --> 00:33:14.900
The arrow keys on your laptop.

00:33:14.980 --> 00:33:15.320
No, no, no.

00:33:15.380 --> 00:33:15.580
Okay.

00:33:15.580 --> 00:33:16.040
Come down.

00:33:17.500 --> 00:33:19.160
Run the previous command.

00:33:19.160 --> 00:33:19.760
Use the app.

00:33:19.860 --> 00:33:21.000
Press the app arrow now.

00:33:21.100 --> 00:33:21.540
Wear the prompt.

00:33:21.840 --> 00:33:22.120
Yes.

00:33:22.160 --> 00:33:22.620
Yes.

00:33:22.640 --> 00:33:23.120
Yes.

00:33:23.120 --> 00:33:23.380
Yes.

00:33:23.380 --> 00:33:24.680
Once again.

00:33:24.860 --> 00:33:25.240
No, no.

00:33:25.800 --> 00:33:27.520
Go to the same command please.

00:33:27.660 --> 00:33:28.040
One second.

00:33:28.280 --> 00:33:28.800
Press enter.

00:33:29.440 --> 00:33:29.920
Okay.

00:33:30.200 --> 00:33:30.680
Okay.

00:33:30.780 --> 00:33:32.900
Charles, you need to tell me what exactly happened initially.

00:33:32.960 --> 00:33:33.800
Something you have done.

00:33:33.940 --> 00:33:34.920
Some mistake you have done.

00:33:35.200 --> 00:33:38.500
Can you type in container D hyphen hyphen version?

00:33:39.760 --> 00:33:42.460
Container D is hyphen hyphen version.

00:33:43.240 --> 00:33:43.720
Okay.

00:33:45.000 --> 00:33:46.900
So can you do cubeadm once again?

00:33:48.340 --> 00:33:49.180
Cubeadm.

00:33:49.180 --> 00:33:50.540
Type in cubeadm.

00:33:50.980 --> 00:33:55.140
Cubeadm space reset space hyphen hyphen hyphen force.

00:33:56.440 --> 00:33:57.320
Hyphen hyphen force.

00:33:59.640 --> 00:33:59.660
Force.

00:34:00.080 --> 00:34:00.200
Force.

00:34:00.560 --> 00:34:00.660
Force.

00:34:00.660 --> 00:34:02.040
F-O-R-C-E.

00:34:02.280 --> 00:34:02.700
Force.

00:34:04.400 --> 00:34:04.520
Yeah.

00:34:04.740 --> 00:34:05.080
Enter.

00:34:06.740 --> 00:34:06.980
Okay.

00:34:06.980 --> 00:34:08.320
Now type in.

00:34:09.160 --> 00:34:09.520
Okay.

00:34:10.560 --> 00:34:13.700
Now run the script again.

00:34:14.280 --> 00:34:16.080
Dot forward slash container D.

00:34:16.080 --> 00:34:18.080
Please type in C1 tap.

00:34:18.760 --> 00:34:19.100
Tap.

00:34:19.340 --> 00:34:19.720
Press the tap.

00:34:19.800 --> 00:34:20.380
Use the tap.

00:34:20.580 --> 00:34:20.840
Yeah.

00:34:21.240 --> 00:34:21.280
Enter.

00:34:21.360 --> 00:34:22.960
You are getting a address error message.

00:34:23.980 --> 00:34:24.760
Charles, what did you do?

00:34:24.860 --> 00:34:25.840
Something you did before.

00:34:25.980 --> 00:34:26.560
Choose Y.

00:34:27.220 --> 00:34:27.760
Choose Y.

00:34:27.760 --> 00:34:28.640
Press Y.

00:34:28.960 --> 00:34:29.700
Type in Y.

00:34:30.240 --> 00:34:31.040
Type Y.

00:34:31.520 --> 00:34:31.840
Enter.

00:34:33.660 --> 00:34:33.920
Okay.

00:34:34.720 --> 00:34:35.280
Now run.

00:34:35.560 --> 00:34:36.260
Use the up arrow.

00:34:38.080 --> 00:34:39.940
Use the up arrow and try to join again.

00:34:44.140 --> 00:34:45.220
Please use.

00:34:45.420 --> 00:34:47.260
Run the join command again.

00:34:48.400 --> 00:34:49.600
Run the join command.

00:34:49.860 --> 00:34:50.420
Join command.

00:34:50.500 --> 00:34:52.920
Previous model when you use apparel.

00:34:53.100 --> 00:34:54.160
Press the apparel.

00:34:54.540 --> 00:34:55.080
Not here.

00:34:55.880 --> 00:34:56.240
Yes.

00:34:56.420 --> 00:34:57.800
Press the apparel.

00:34:58.760 --> 00:34:58.960
Key.

00:34:58.960 --> 00:34:59.200
Key.

00:34:59.340 --> 00:35:00.040
On your laptop.

00:35:01.100 --> 00:35:02.080
On a laptop.

00:35:02.400 --> 00:35:04.460
Press the up key.

00:35:04.760 --> 00:35:05.420
The up arrow key.

00:35:05.600 --> 00:35:05.920
Yes.

00:35:06.600 --> 00:35:06.920
Yes.

00:35:07.040 --> 00:35:07.940
Can you run it once more?

00:35:08.060 --> 00:35:08.340
Okay.

00:35:08.340 --> 00:35:10.200
I'm not sure what has happened.

00:35:11.120 --> 00:35:12.180
Something you've done.

00:35:12.840 --> 00:35:13.040
Okay.

00:35:13.160 --> 00:35:16.120
Can you now, I'll give you two more missions.

00:35:16.760 --> 00:35:19.940
Can you do on those two missions instead of these two worker nodes?

00:35:20.120 --> 00:35:20.440
Yeah.

00:35:20.600 --> 00:35:22.500
You can close this worker one, worker two.

00:35:22.600 --> 00:35:23.400
You can close these.

00:35:23.960 --> 00:35:28.600
I'll give you two more missions in which you won't do these steps slowly.

00:35:28.680 --> 00:35:29.400
Is it okay?

00:35:30.780 --> 00:35:31.240
Okay.

00:35:31.480 --> 00:35:34.240
So now the other two missions in which you want to play around.

00:35:34.240 --> 00:35:37.200
So check if you're able to log into this mission.

00:35:39.020 --> 00:35:40.220
And this mission.

00:35:40.260 --> 00:35:41.400
Log into 193.

00:35:41.520 --> 00:35:42.040
Not here.

00:35:42.960 --> 00:35:44.160
Come back to the student.

00:35:45.580 --> 00:35:45.980
Yeah.

00:35:46.620 --> 00:35:47.340
And the student.

00:35:47.660 --> 00:35:47.900
Sorry, Charles.

00:35:47.960 --> 00:35:49.020
Can you minimize the master?

00:35:49.220 --> 00:35:49.900
Minimize this.

00:35:51.060 --> 00:35:51.400
No, no.

00:35:51.400 --> 00:35:52.320
Don't close it.

00:35:53.560 --> 00:35:54.040
Minimize.

00:35:55.160 --> 00:35:56.240
I mean, you have a, okay.

00:35:56.340 --> 00:35:57.100
Maximize this.

00:35:57.500 --> 00:35:58.240
No, no, no, no.

00:35:58.380 --> 00:35:59.160
Maximize this now.

00:35:59.680 --> 00:36:00.160
Maximize.

00:36:01.480 --> 00:36:01.960
Maximize.

00:36:02.120 --> 00:36:02.260
Yes.

00:36:02.260 --> 00:36:02.840
Now.

00:36:03.420 --> 00:36:04.580
One second.

00:36:04.680 --> 00:36:05.040
No, no.

00:36:05.040 --> 00:36:05.600
Your right window.

00:36:05.660 --> 00:36:06.740
One second.

00:36:07.220 --> 00:36:08.680
Now type in CD.

00:36:10.560 --> 00:36:10.780
Yeah.

00:36:11.000 --> 00:36:11.140
Yeah.

00:36:11.640 --> 00:36:12.380
Enter.

00:36:13.060 --> 00:36:18.460
SSH hyphen I name key dot PEM P dot PEM PEM.

00:36:18.660 --> 00:36:31.260
Paste Ubuntu at IP 54 at 54 255 5454 dot 255 dot 235 dot 193.

00:36:31.510 --> 00:36:32.510
Press enter.

00:36:34.230 --> 00:36:34.570
Choose yes.

00:36:35.130 --> 00:36:39.110
Now do a sudo su hyphen.

00:36:40.270 --> 00:36:50.490
sudo su sudo after sudo no hyphen space su space hyphen.

00:36:51.370 --> 00:36:51.630
Enter.

00:36:51.890 --> 00:36:59.570
Type in hostname ctl hostname ctl space set hyphen hostname.

00:37:00.450 --> 00:37:02.010
No, no, no.

00:37:02.130 --> 00:37:02.430
No hyphen.

00:37:03.050 --> 00:37:03.410
Set.

00:37:03.610 --> 00:37:04.570
SET hyphen.

00:37:05.310 --> 00:37:07.250
After set, one hyphen.

00:37:08.850 --> 00:37:09.110
Yeah.

00:37:10.270 --> 00:37:10.550
Next.

00:37:10.650 --> 00:37:11.850
After hostname.

00:37:12.170 --> 00:37:13.630
No, no, no.

00:37:13.770 --> 00:37:15.350
This is the mistake you're doing, I think.

00:37:16.010 --> 00:37:16.710
Very careful.

00:37:18.010 --> 00:37:18.550
Control C.

00:37:18.730 --> 00:37:19.330
What's happening?

00:37:19.530 --> 00:37:20.270
I can't see.

00:37:20.950 --> 00:37:21.890
Type in clear, please.

00:37:23.130 --> 00:37:23.530
Type clear.

00:37:23.750 --> 00:37:23.990
Yeah.

00:37:23.990 --> 00:37:31.990
Set hostname ctl space set hyphen hostname space worker space worker one.

00:37:33.590 --> 00:37:35.130
No, I think once again.

00:37:35.570 --> 00:37:35.970
Right.

00:37:36.530 --> 00:37:38.050
So can you use apparel again?

00:37:39.330 --> 00:37:39.990
Use apparel.

00:37:40.070 --> 00:37:41.510
Press apparel on your laptop.

00:37:41.910 --> 00:37:43.430
Press make it three now.

00:37:43.590 --> 00:37:43.730
Sorry.

00:37:43.890 --> 00:37:44.590
Make it three.

00:37:44.930 --> 00:37:45.910
So one make it three.

00:37:46.290 --> 00:37:46.810
Enter.

00:37:47.990 --> 00:37:48.330
Yeah.

00:37:48.330 --> 00:37:49.370
Type in exact bash.

00:37:50.910 --> 00:37:51.270
Yeah.

00:37:51.270 --> 00:37:53.670
So now write the script now.

00:37:53.670 --> 00:37:55.030
Now follow the steps now properly.

00:37:55.570 --> 00:37:55.930
Then do it.

00:37:56.050 --> 00:37:57.870
Now do the next command document.

00:37:58.850 --> 00:38:00.370
Others, you have to wait for five minutes.

00:38:01.690 --> 00:38:03.310
Just finish off this troubleshooting.

00:38:03.590 --> 00:38:03.710
Yeah.

00:38:03.710 --> 00:38:04.490
Copy this.

00:38:06.110 --> 00:38:06.570
Enter.

00:38:07.550 --> 00:38:08.050
Press enter.

00:38:08.250 --> 00:38:08.810
Press enter.

00:38:10.410 --> 00:38:10.610
Yeah.

00:38:10.670 --> 00:38:11.770
Now vi.

00:38:12.530 --> 00:38:13.710
Do a control C.

00:38:13.910 --> 00:38:14.530
I can't see it.

00:38:14.610 --> 00:38:15.290
Do a clear.

00:38:15.310 --> 00:38:15.810
Type in clear.

00:38:17.490 --> 00:38:20.550
Container D dot S and change the script, which is there under the worker.

00:38:20.650 --> 00:38:21.070
No session.

00:38:21.070 --> 00:38:21.930
The complete script.

00:38:21.930 --> 00:38:22.510
Once again.

00:38:22.550 --> 00:38:23.670
Can you go down?

00:38:24.150 --> 00:38:24.490
Go up.

00:38:24.490 --> 00:38:25.110
Go up in this document.

00:38:25.310 --> 00:38:25.650
Go up.

00:38:28.350 --> 00:38:28.950
Still up.

00:38:29.230 --> 00:38:29.950
Once again.

00:38:30.310 --> 00:38:30.810
Once again.

00:38:30.950 --> 00:38:32.650
Go down in that last line.

00:38:33.090 --> 00:38:34.130
Last line.

00:38:35.430 --> 00:38:35.670
OK.

00:38:35.910 --> 00:38:36.790
Now click on paste.

00:38:37.090 --> 00:38:39.110
Escape colon WQ.

00:38:39.690 --> 00:38:40.790
Escape colon WQ.

00:38:40.970 --> 00:38:42.130
Again, do a cat on this file.

00:38:42.290 --> 00:38:42.970
Do a cat.

00:38:44.350 --> 00:38:44.790
Cat.

00:38:44.790 --> 00:38:46.050
C-A-T.

00:38:46.050 --> 00:38:47.130
The file name.

00:38:47.410 --> 00:38:47.610
Space.

00:38:47.610 --> 00:38:49.010
Container D dot S-H.

00:38:49.250 --> 00:38:49.690
Space.

00:38:50.910 --> 00:38:51.430
Just type it.

00:38:51.430 --> 00:38:51.790
Tap.

00:38:52.070 --> 00:38:52.690
With a tap.

00:38:53.750 --> 00:38:54.030
Enter.

00:38:54.290 --> 00:38:54.730
OK.

00:38:54.890 --> 00:38:55.330
Fine.

00:38:55.990 --> 00:38:56.450
C-H mod.

00:38:56.550 --> 00:38:57.590
Type in C-H mod.

00:38:57.750 --> 00:38:58.370
Seven hundred.

00:38:59.550 --> 00:39:00.410
C-H mod.

00:39:00.570 --> 00:39:00.870
Space.

00:39:00.930 --> 00:39:01.570
Seven hundred.

00:39:02.250 --> 00:39:03.010
The file name.

00:39:03.110 --> 00:39:03.550
Space.

00:39:03.950 --> 00:39:04.670
Just type in.

00:39:04.810 --> 00:39:04.950
Yeah.

00:39:05.390 --> 00:39:05.830
Enter.

00:39:06.870 --> 00:39:07.930
Dot forward slash.

00:39:08.170 --> 00:39:08.450
Container D.

00:39:08.570 --> 00:39:08.910
Enter.

00:39:08.910 --> 00:39:10.550
Now you see that you're not getting error message.

00:39:10.550 --> 00:39:13.030
Before you got error message of the hostname or something.

00:39:13.090 --> 00:39:14.750
Got error message last time.

00:39:15.210 --> 00:39:15.590
The problem.

00:39:16.530 --> 00:39:16.670
OK.

00:39:16.670 --> 00:39:18.790
Is it one before other, him or others?

00:39:19.070 --> 00:39:19.790
The voice is not clear?

00:39:20.810 --> 00:39:21.010
Fine.

00:39:21.170 --> 00:39:21.610
OK.

00:39:21.810 --> 00:39:21.950
Fine.

00:39:21.970 --> 00:39:23.450
I'm making off.

00:39:23.990 --> 00:39:24.610
Press enter.

00:39:25.890 --> 00:39:26.350
Press enter.

00:39:26.730 --> 00:39:27.330
Press enter.

00:39:28.070 --> 00:39:28.390
OK.

00:39:28.650 --> 00:39:29.790
So now go to the master.

00:39:31.310 --> 00:39:32.170
Go to the master mission.

00:39:34.050 --> 00:39:34.490
Maximize.

00:39:34.490 --> 00:39:36.170
Copy this token from the stack.

00:39:36.230 --> 00:39:36.590
No, no.

00:39:37.450 --> 00:39:38.170
Now go back.

00:39:38.370 --> 00:39:39.370
Paste this.

00:39:40.170 --> 00:39:40.570
Not here.

00:39:40.570 --> 00:39:41.370
Not here.

00:39:42.570 --> 00:39:43.230
On your worker.

00:39:43.330 --> 00:39:44.370
Worker three.

00:39:45.850 --> 00:39:46.170
Right click.

00:39:46.290 --> 00:39:46.430
Enter.

00:39:46.490 --> 00:39:47.370
It's working now.

00:39:47.650 --> 00:39:49.810
So do the same on the other VM also.

00:39:50.030 --> 00:39:50.250
Clear?

00:39:50.350 --> 00:39:50.850
The new one.

00:39:50.970 --> 00:39:51.090
OK.

00:39:51.110 --> 00:39:51.830
So be careful.

00:39:52.090 --> 00:39:52.710
I think.

00:39:53.710 --> 00:39:53.890
No, no.

00:39:53.890 --> 00:39:54.470
Not here now.

00:39:54.510 --> 00:39:56.050
By error again coming in here.

00:39:56.750 --> 00:39:57.450
Not a worker one.

00:39:57.470 --> 00:39:59.370
Go back to your terminal.

00:40:00.490 --> 00:40:01.010
Is it terminal?

00:40:01.470 --> 00:40:01.910
Is it yours?

00:40:02.030 --> 00:40:02.470
One second.

00:40:02.670 --> 00:40:03.330
Is it yours?

00:40:03.790 --> 00:40:04.630
Which terminal is this?

00:40:05.310 --> 00:40:05.570
OK.

00:40:05.570 --> 00:40:06.030
Now good.

00:40:07.270 --> 00:40:07.490
Yeah.

00:40:07.590 --> 00:40:08.170
Close this.

00:40:09.490 --> 00:40:10.790
Now again click on terminal.

00:40:11.210 --> 00:40:11.870
Not this one.

00:40:11.990 --> 00:40:12.710
The terminal dock.

00:40:14.510 --> 00:40:14.910
Yeah.

00:40:15.610 --> 00:40:15.950
Yeah.

00:40:16.130 --> 00:40:16.530
Yeah.

00:40:16.650 --> 00:40:17.050
Right.

00:40:17.290 --> 00:40:17.610
That's fine.

00:40:17.890 --> 00:40:18.150
Yeah.

00:40:18.150 --> 00:40:18.890
Now do it quickly.

00:40:19.070 --> 00:40:19.370
Let's see.

00:40:19.450 --> 00:40:20.290
Finish off.

00:40:20.650 --> 00:40:21.550
Let's just do this.

00:40:21.610 --> 00:40:22.310
Go to CD.

00:40:22.770 --> 00:40:23.170
Location.

00:40:23.250 --> 00:40:23.910
Same steps.

00:40:24.690 --> 00:40:25.830
You're supposed to use the next IP.

00:40:25.930 --> 00:40:29.450
The IP which I gave it to you was 227.

00:40:29.650 --> 00:40:29.810
Clear?

00:40:31.530 --> 00:40:31.690
Yeah.

00:40:31.890 --> 00:40:32.230
Yes.

00:40:32.310 --> 00:40:32.910
You can go like this.

00:40:32.930 --> 00:40:33.310
Choose yes.

00:40:33.950 --> 00:40:34.130
Yeah.

00:40:34.170 --> 00:40:35.830
Pseudosu hyphen.

00:40:35.830 --> 00:40:37.830
Pseudosu space hyphen.

00:40:39.550 --> 00:40:40.210
Enter.

00:40:40.910 --> 00:40:41.090
Hostname.

00:40:41.450 --> 00:40:42.110
Hostname.

00:40:43.570 --> 00:40:44.230
Hostname.

00:40:44.450 --> 00:40:44.810
Hostname.

00:40:44.810 --> 00:40:45.030
Hostname.

00:40:45.930 --> 00:40:46.590
Hostname.

00:40:47.130 --> 00:40:49.950
Set hyphen hostname.

00:40:50.150 --> 00:40:52.150
Set hyphen hostname.

00:40:52.290 --> 00:40:52.730
Set hyphen hostname.

00:40:52.950 --> 00:40:54.650
The end make it as worker four.

00:40:54.650 --> 00:40:55.130
Enter.

00:40:57.290 --> 00:40:57.810
Exec bash.

00:40:58.050 --> 00:40:58.750
Exec bash.

00:40:59.910 --> 00:41:00.370
Enter.

00:41:01.330 --> 00:41:03.090
Now run those two utilities.

00:41:07.530 --> 00:41:10.650
App get update and installing the certificate.

00:41:12.750 --> 00:41:12.990
Yeah.

00:41:13.110 --> 00:41:13.570
Enter.

00:41:18.250 --> 00:41:18.710
Enter.

00:41:20.050 --> 00:41:20.390
Enter.

00:41:21.210 --> 00:41:21.250
Enter.

00:41:23.450 --> 00:41:23.730
Yeah.

00:41:23.810 --> 00:41:24.130
Vi.

00:41:24.210 --> 00:41:25.930
Container d.sh.

00:41:31.130 --> 00:41:32.190
Container d.sh.

00:41:32.310 --> 00:41:33.010
You can give any names.

00:41:33.590 --> 00:41:34.470
Container d.

00:41:34.470 --> 00:41:35.470
Container d.sh.

00:41:37.870 --> 00:41:38.810
Enter.

00:41:39.710 --> 00:41:40.190
Page script.

00:41:40.590 --> 00:41:41.830
Insert mode i.

00:41:42.190 --> 00:41:42.570
Page script.

00:41:42.810 --> 00:41:42.930
Yeah.

00:41:42.930 --> 00:41:43.330
Come down.

00:41:43.630 --> 00:41:44.930
Come down.

00:41:45.250 --> 00:41:46.230
Come down.

00:41:46.830 --> 00:41:47.550
Come down.

00:41:47.770 --> 00:41:47.950
Yeah.

00:41:48.210 --> 00:41:48.830
Click paste.

00:41:50.650 --> 00:41:50.930
Yeah.

00:41:51.130 --> 00:41:52.470
Escape colon wq.

00:41:54.390 --> 00:41:55.490
Chmod 700.

00:41:57.050 --> 00:41:57.950
Descript.

00:41:59.490 --> 00:42:00.970
Now run those two utilities.

00:42:04.630 --> 00:42:09.810
Now once this is done, in the meanwhile, can you go and have the token copied?

00:42:10.230 --> 00:42:12.630
In the master, again have the token copied.

00:42:13.370 --> 00:42:14.090
Now maximize.

00:42:15.190 --> 00:42:16.570
Copy from the start.

00:42:16.990 --> 00:42:17.530
Whichever you want.

00:42:17.790 --> 00:42:18.150
Okay.

00:42:19.470 --> 00:42:20.250
Copy it.

00:42:20.470 --> 00:42:20.730
Yeah.

00:42:20.910 --> 00:42:22.390
Come back to that node.

00:42:23.670 --> 00:42:24.470
Press enter.

00:42:26.130 --> 00:42:27.150
Right click.

00:42:28.610 --> 00:42:29.570
And paste as enter.

00:42:30.570 --> 00:42:31.690
Now go back to the master.

00:42:31.690 --> 00:42:33.050
Type in kubectl get nodes.

00:42:35.570 --> 00:42:41.550
kubectl kubectl kubectl space get space nodes.

00:42:41.790 --> 00:42:42.390
Enter.

00:42:43.890 --> 00:42:44.530
All good.

00:42:44.990 --> 00:42:45.330
Yeah.

00:42:46.630 --> 00:42:49.870
So remember which machines you're supposed to use worker three and worker four.

00:42:50.090 --> 00:42:50.190
Clear?

00:42:50.510 --> 00:42:51.210
Not worker two.

00:42:51.390 --> 00:42:51.550
Clear?

00:42:52.050 --> 00:42:52.290
Okay.

00:42:52.590 --> 00:42:59.130
So I think you missed on that enter or something when asked the kernel.

00:42:59.610 --> 00:43:00.730
Remember the screen we got?

00:43:00.730 --> 00:43:02.950
Might be made some changes in there.

00:43:02.970 --> 00:43:05.850
And hence it's not able to, it has got corrupted the kernel or something.

00:43:06.830 --> 00:43:07.150
Yeah.

00:43:07.410 --> 00:43:09.150
So we'll not be using those two machines now.

00:43:09.150 --> 00:43:10.230
We'll be using these three machines.

00:43:10.430 --> 00:43:10.510
Clear?

00:43:10.590 --> 00:43:10.910
Okay.

00:43:10.950 --> 00:43:11.950
Thank you.

00:43:12.230 --> 00:43:14.110
Others, are we good to understand how you troubleshoot?

00:43:14.410 --> 00:43:17.210
So why am I telling to install it?

00:43:17.250 --> 00:43:20.310
Because when you want to install it, you know how to install it.

00:43:20.830 --> 00:43:22.390
And also to troubleshoot.

00:43:22.950 --> 00:43:27.390
But if you just get the software, sometimes you'll not understand what is happening in the backend.

00:43:28.630 --> 00:43:29.770
Are we good till here, everyone?

00:43:29.770 --> 00:43:30.730
Okay.

00:43:31.870 --> 00:43:34.230
So now observe what the next step.

00:43:34.310 --> 00:43:34.710
Okay.

00:43:35.130 --> 00:43:37.070
So now how do we?

00:43:38.030 --> 00:43:39.870
We can also use a nickname.

00:43:40.050 --> 00:43:41.550
So we use alias.

00:43:42.010 --> 00:43:45.190
So alias in Linux is to make the command easy.

00:43:45.270 --> 00:43:48.350
So we can say something like this.

00:43:49.410 --> 00:43:52.470
So instead of complete, I can just say K.

00:43:55.150 --> 00:43:59.330
So to use alias, give a name, short form and mention it.

00:43:59.330 --> 00:44:01.930
So that you're not typing everything because we make mistakes.

00:44:05.310 --> 00:44:06.330
Now one more command.

00:44:07.290 --> 00:44:07.690
Next command.

00:44:07.830 --> 00:44:09.290
I'm doing all the commands as per document.

00:44:09.590 --> 00:44:10.310
This is still here.

00:44:10.310 --> 00:44:12.130
It is done.

00:44:13.210 --> 00:44:14.670
This is all we have done.

00:44:15.850 --> 00:44:17.690
These are all we have done.

00:44:18.750 --> 00:44:20.790
So now let's run this command.

00:44:29.530 --> 00:44:35.970
So this is going to print all the parts across all the namespaces in a wide format.

00:44:35.970 --> 00:44:39.550
It means in a full information so that you can see all the information.

00:44:44.350 --> 00:44:46.490
Yes, do you see this everyone?

00:44:51.870 --> 00:44:54.450
So what exactly is it showing you?

00:44:55.150 --> 00:44:57.330
It is showing you the pod names.

00:44:57.630 --> 00:45:02.010
So again, it is showing you the pod names, the namespace.

00:45:02.470 --> 00:45:03.490
This is the pod name.

00:45:04.730 --> 00:45:05.810
How many containers?

00:45:05.930 --> 00:45:06.930
This has one container.

00:45:06.930 --> 00:45:07.530
One is running.

00:45:07.530 --> 00:45:09.270
This has two containers running.

00:45:10.230 --> 00:45:13.330
For some reasons, this is going crash to back off.

00:45:13.570 --> 00:45:13.910
I'm not sure.

00:45:15.730 --> 00:45:16.650
Is it working for you?

00:45:16.690 --> 00:45:16.950
Everything?

00:45:17.850 --> 00:45:18.350
Fine.

00:45:24.890 --> 00:45:25.930
The crash to back off.

00:45:26.230 --> 00:45:26.710
Is it?

00:45:29.110 --> 00:45:29.610
Okay.

00:45:30.390 --> 00:45:30.690
Okay.

00:45:30.690 --> 00:45:31.950
Let's see why is it happening.

00:45:32.830 --> 00:45:33.950
I'm not sure.

00:45:34.550 --> 00:45:35.830
Network wise.

00:45:41.390 --> 00:45:43.070
So getting errors for proxy.

00:45:45.230 --> 00:45:46.070
Let's see.

00:45:46.610 --> 00:45:47.390
Next one.

00:45:48.230 --> 00:45:50.730
You also see resets and the pod names.

00:45:50.890 --> 00:45:51.630
This is a pod IP.

00:45:52.630 --> 00:45:53.970
This is your name on the node.

00:45:54.110 --> 00:45:54.730
This is a pod IP.

00:45:55.450 --> 00:45:56.550
Let's do a small example.

00:45:56.710 --> 00:45:57.490
Let's do a small.

00:45:57.650 --> 00:45:58.750
Let's try to create a pod.

00:45:58.930 --> 00:46:00.070
So you can say run.

00:46:02.250 --> 00:46:04.330
Give a name for the pod.

00:46:06.390 --> 00:46:08.290
And give an image equal to index.

00:46:11.330 --> 00:46:12.070
The last command.

00:46:13.810 --> 00:46:14.550
Let's get this pod.

00:46:14.770 --> 00:46:15.790
Let's look into this later.

00:46:15.830 --> 00:46:18.070
Let's try to create a pod right now.

00:46:18.950 --> 00:46:19.350
Run.

00:46:21.030 --> 00:46:21.510
Example.

00:46:21.650 --> 00:46:22.110
The index.

00:46:23.350 --> 00:46:24.910
And now get pods.

00:46:29.050 --> 00:46:33.910
And it must create your pod.

00:46:38.270 --> 00:46:39.190
Let's see.

00:46:40.330 --> 00:46:41.350
Because getting some error.

00:46:42.010 --> 00:46:42.910
Is it working for you all?

00:46:48.250 --> 00:46:48.790
Oh no.

00:46:55.890 --> 00:46:55.910
Sorry.

00:46:56.450 --> 00:46:58.830
Mine is pending because I think.

00:47:00.930 --> 00:47:02.330
No, no, no.

00:47:02.430 --> 00:47:03.050
It must be.

00:47:03.050 --> 00:47:03.670
It is not OK.

00:47:03.750 --> 00:47:04.610
There is some problem.

00:47:05.470 --> 00:47:06.290
If it is crashed.

00:47:06.390 --> 00:47:07.430
It is some error.

00:47:07.590 --> 00:47:09.090
We're getting everyone.

00:47:10.690 --> 00:47:11.310
Let's see.

00:47:11.510 --> 00:47:11.910
Why is that?

00:47:12.810 --> 00:47:14.310
It's running for.

00:47:15.250 --> 00:47:16.870
Who is this last one?

00:47:18.030 --> 00:47:18.470
Charles.

00:47:19.050 --> 00:47:19.970
It runs for Charles.

00:47:20.190 --> 00:47:21.190
Perfect now.

00:47:22.750 --> 00:47:23.830
So what's happening?

00:47:25.230 --> 00:47:26.750
It seems to be dead.

00:47:27.370 --> 00:47:29.190
But runs for him.

00:47:29.190 --> 00:47:30.050
What's happening?

00:47:31.090 --> 00:47:31.390
OK.

00:47:32.870 --> 00:47:33.470
Let's.

00:47:33.790 --> 00:47:34.670
Not sure why it's happening.

00:47:34.930 --> 00:47:35.930
Seems to be followed.

00:47:37.470 --> 00:47:38.190
For others.

00:47:40.490 --> 00:47:41.690
Let's troubleshoot.

00:47:49.350 --> 00:47:51.470
Let's do a describe the pod.

00:48:08.790 --> 00:48:10.870
So let's do this.

00:48:14.010 --> 00:48:14.930
Let's.

00:48:14.930 --> 00:48:16.830
Apply the network once more.

00:48:17.030 --> 00:48:19.470
Apply the network once more.

00:48:21.430 --> 00:48:23.410
The nodes are ready.

00:48:24.110 --> 00:48:30.790
Apply the network once more.

00:48:41.930 --> 00:48:43.050
OK.

00:48:45.190 --> 00:48:45.750
And.

00:48:47.490 --> 00:48:48.090
See this.

00:49:05.070 --> 00:49:05.910
And.

00:49:07.410 --> 00:49:08.410
Let's do this.

00:49:08.690 --> 00:49:09.790
I'm going to do a.

00:49:11.750 --> 00:49:12.590
Reset.

00:49:13.730 --> 00:49:14.270
Again.

00:49:15.110 --> 00:49:15.530
Master.

00:49:22.530 --> 00:49:22.910
And.

00:49:23.230 --> 00:49:24.230
And then again do it.

00:49:24.830 --> 00:49:25.750
I'm doing a reset.

00:49:36.830 --> 00:49:37.570
Try to do.

00:49:37.610 --> 00:49:38.570
I'm trying to do a reset.

00:49:38.770 --> 00:49:39.330
That's a check.

00:49:40.310 --> 00:49:41.570
Then all the set the same.

00:49:41.570 --> 00:49:42.430
Not sure.

00:49:43.390 --> 00:49:44.630
Medium reset.

00:49:45.210 --> 00:49:45.690
Force.

00:49:48.750 --> 00:49:51.170
And follow the steps again.

00:49:52.490 --> 00:49:53.910
Copy the token.

00:49:57.850 --> 00:49:59.410
To a notepad.

00:50:02.990 --> 00:50:06.490
And run those three commands.

00:50:25.990 --> 00:50:27.690
All right.

00:50:44.970 --> 00:50:50.190
So now what you do is.

00:50:51.310 --> 00:50:53.810
Reset on the worker nodes also.

00:51:20.330 --> 00:51:22.630
And join the new token.

00:51:53.950 --> 00:51:54.350
OK.

00:52:19.310 --> 00:52:19.910
Let's do this.

00:52:19.990 --> 00:52:20.170
And.

00:52:27.030 --> 00:52:43.710
It's running, it's working, if you do properly again it's working, please check, yes, yes.

00:52:45.030 --> 00:52:46.410
Everything you're doing is resetting.

00:52:46.450 --> 00:52:53.370
Reset on the master, reset on your worker nodes and do everything from the reset step.

00:53:34.510 --> 00:53:39.010
Okay, let's see for this, I think we have to do a reset on all of them.

00:53:40.050 --> 00:53:43.450
Gene, hope you understood, do a reset, what are you trying to do now?

00:53:43.450 --> 00:53:51.470
Understand, so you're doing it now again, after you do a reset, again do a init and then apply it.

00:53:51.570 --> 00:54:01.830
Yeah, kube-adm space init, kube-adm space init and yeah, wait for all the steps, the same steps you're supposed to do all on your worker nodes also.

00:54:03.130 --> 00:54:09.750
Do a reset, if an FN force, do a reset, if an FN force on the master worker nodes also.

00:54:10.850 --> 00:54:14.110
Copy the token, copy the token, okay, CK, what are you trying to do?

00:54:14.330 --> 00:54:27.750
kube-adm reset, kube-adm reset hyphen hyphen force reset, space reset, space hyphen hyphen force, yeah, force force, FORCE, yeah, yeah.

00:54:28.570 --> 00:54:31.370
Good thing you're doing the nodes, press enter.

00:54:31.630 --> 00:54:36.290
After you do it, again do a init, again the same process, do a init.

00:54:42.230 --> 00:54:48.690
Yes, same on the worker node also, you're supposed to do a reset and get a new token and add the token.

00:54:48.910 --> 00:54:50.910
Charles, you're good right now.

00:54:51.390 --> 00:54:52.350
Now who's talking now to me?

00:54:52.470 --> 00:54:53.310
Charles, why are you doing this?

00:54:53.490 --> 00:54:54.190
We're all good.

00:54:54.210 --> 00:54:54.970
Why you did this?

00:54:55.170 --> 00:54:56.110
I told you all good, correct?

00:54:56.350 --> 00:54:57.790
I told you all good, all are running.

00:54:59.650 --> 00:55:01.430
Okay, type in kube-adm space init.

00:55:03.090 --> 00:55:06.910
I told not for you, for others, because you've seen all the parts running before.

00:55:06.910 --> 00:55:10.810
Yeah, kube-adm space space init, yes, enter.

00:55:11.030 --> 00:55:14.770
Same step you're supposed to do, do a reset now on the worker also.

00:55:15.550 --> 00:55:17.270
kube-adm reset hyphen hyphen force.

00:55:18.210 --> 00:55:23.090
After this is done, follow the steps, reset and all of them.

00:55:24.370 --> 00:55:26.610
Copy the token and run this token.

00:55:26.850 --> 00:55:31.030
kube-adm space reset hyphen hyphen force and all the missions.

00:55:31.750 --> 00:55:32.770
They're all in the chat.

00:55:34.270 --> 00:55:35.690
And then join again.

00:55:35.690 --> 00:55:38.070
Before, master, you first do this.

00:55:38.110 --> 00:55:39.770
On the master, you run the three commands.

00:55:41.130 --> 00:55:42.910
Junvi, mkdar, kubectl.

00:55:43.010 --> 00:55:47.030
After you do init, you also need to run those three commands of mkdar.

00:55:47.270 --> 00:55:49.690
All the three commands for kubectl.

00:55:52.110 --> 00:55:53.910
First, confirm the master is ready.

00:55:55.370 --> 00:55:56.210
Junvi, have we got it?

00:55:56.630 --> 00:55:58.330
You're supposed to run the three commands.

00:55:58.470 --> 00:56:01.450
The mkdar, kube-config and chown.

00:56:01.450 --> 00:56:06.610
The master, after you did a reset, you need to run those three commands.

00:56:09.270 --> 00:56:14.190
That mkdar, kubectl, sudo, scp, these three commands.

00:56:14.450 --> 00:56:16.090
So first, always check the master is ready.

00:56:16.390 --> 00:56:17.750
Then you want to join.

00:56:17.790 --> 00:56:19.650
First, ensure the master is ready.

00:56:20.470 --> 00:56:21.550
Yes, up to yes.

00:56:22.450 --> 00:56:23.970
Choose why, choose why.

00:56:24.430 --> 00:56:25.390
Why, why?

00:56:25.970 --> 00:56:27.010
Type in why, why, why?

00:56:27.210 --> 00:56:28.730
Just check it, I'm not sure.

00:56:30.110 --> 00:56:31.670
Okay, proceed now, next step.

00:56:31.710 --> 00:56:33.910
Again, paste it, enter.

00:56:34.450 --> 00:56:35.590
Choose why.

00:56:35.870 --> 00:56:36.130
Enter.

00:56:36.710 --> 00:56:39.150
So now, paste that apply command.

00:56:40.510 --> 00:56:41.930
Apply hyphen f network.

00:56:42.070 --> 00:56:43.350
The network which you added.

00:56:43.690 --> 00:56:45.510
Weave net, the last line, master.

00:56:45.910 --> 00:56:47.250
Okay, go back to documentation.

00:56:47.450 --> 00:56:49.290
You see apply command for network adding.

00:56:49.530 --> 00:56:50.670
Here, let me give the command a chat.

00:56:52.390 --> 00:56:53.770
I am giving the command a chat.

00:56:53.970 --> 00:56:55.550
Yes, I paste the chat.

00:56:55.710 --> 00:56:56.610
Run this command.

00:56:56.610 --> 00:56:59.450
Yes, first check if master must be ready.

00:56:59.910 --> 00:57:01.510
Do a get nodes.

00:57:02.150 --> 00:57:03.210
kubectl get nodes.

00:57:04.570 --> 00:57:05.870
kubectl get nodes.

00:57:06.410 --> 00:57:07.730
First, ensure the master is ready.

00:57:07.810 --> 00:57:08.810
And then add the token.

00:57:10.310 --> 00:57:12.950
Yes, now go and add the token on the worker nodes.

00:57:14.450 --> 00:57:16.730
Repeat again, ensure the master is ready.

00:57:17.530 --> 00:57:18.810
Run in the kubectl commands.

00:57:18.990 --> 00:57:19.710
Apply commands.

00:57:19.830 --> 00:57:22.830
And then go ahead and run in the token on the worker node.

00:57:23.710 --> 00:57:24.770
Okay, miss the token.

00:57:24.910 --> 00:57:26.470
You can also run a new token.

00:57:27.450 --> 00:57:27.930
Yes.

00:57:29.630 --> 00:57:31.450
Now go to master.

00:57:37.730 --> 00:57:38.770
kubectl get nodes.

00:57:40.030 --> 00:57:40.190
kubectl get nodes.

00:57:40.190 --> 00:57:40.830
Yeah, this is there.

00:57:41.010 --> 00:57:44.130
Anyway, just do a kubectl get nodes once.

00:57:45.650 --> 00:57:46.370
Get nodes.

00:57:48.090 --> 00:57:49.410
Yes, you're good now.

00:57:49.550 --> 00:57:50.550
Now dedicate a pod.

00:57:50.550 --> 00:57:52.250
Dedicate a pod.

00:57:53.070 --> 00:58:04.750
kubectl k run k run run space example space hyphen hyphen image equal to index index.

00:58:06.310 --> 00:58:07.830
And it will get created.

00:58:09.270 --> 00:58:11.490
Okay, are you good now?

00:58:11.970 --> 00:58:12.670
No, no, no.

00:58:12.710 --> 00:58:13.430
Spelling is wrong.

00:58:14.450 --> 00:58:15.250
It is syntax is wrong.

00:58:15.910 --> 00:58:19.730
After example is paste and after image equals it is equals not colon.

00:58:19.730 --> 00:58:20.090
Enter.

00:58:20.250 --> 00:58:21.730
Now go get pods.

00:58:22.250 --> 00:58:23.350
kubectl get pods.

00:58:23.810 --> 00:58:26.390
Pod pods pods.

00:58:27.330 --> 00:58:28.670
Remove that.

00:58:28.730 --> 00:58:30.450
Just kubectl get pods.

00:58:31.650 --> 00:58:36.490
kubectl get pods hyphen space hyphen O and Y.

00:58:37.190 --> 00:58:39.250
Which O O.

00:58:39.410 --> 00:58:41.090
I forget O space Y.

00:58:41.950 --> 00:58:42.930
No hyphen again.

00:58:43.470 --> 00:58:43.910
Before.

00:58:44.410 --> 00:58:44.810
Yes.

00:58:45.570 --> 00:58:45.890
Enter.

00:58:47.470 --> 00:58:48.570
It is running.

00:58:50.290 --> 00:58:51.550
Everyone is running now.

00:58:51.630 --> 00:58:52.810
KCK all are good now.

00:58:55.650 --> 00:58:58.150
So Charles I clearly told you why you're doing all this.

00:58:58.430 --> 00:58:59.270
Everything is good.

00:58:59.410 --> 00:59:00.550
Perfectly took before.

00:59:02.110 --> 00:59:02.390
Yeah.

00:59:02.570 --> 00:59:05.690
Can you copy token to notepad or what you can do like this?

00:59:06.230 --> 00:59:06.910
Once again, Charles.

00:59:07.010 --> 00:59:10.190
So can you go to the master to master?

00:59:10.350 --> 00:59:12.170
Why are you trying to join again on the master?

00:59:12.270 --> 00:59:13.150
Please understand.

00:59:13.870 --> 00:59:14.390
This over.

00:59:14.390 --> 00:59:15.190
You must.

00:59:15.730 --> 00:59:16.390
No, no, no.

00:59:17.190 --> 00:59:17.630
Go control C.

00:59:17.990 --> 00:59:20.130
Go control C.

00:59:20.490 --> 00:59:22.030
Please do control C.

00:59:22.570 --> 00:59:24.310
kubectl get nodes.

00:59:25.450 --> 00:59:28.130
kubectl get nodes.

00:59:28.150 --> 00:59:29.810
Space get space nodes.

00:59:30.350 --> 00:59:30.390
Space.

00:59:31.210 --> 00:59:32.290
Have to get.

00:59:33.490 --> 00:59:33.970
Nodes.

00:59:34.610 --> 00:59:35.230
Yes.

00:59:36.070 --> 00:59:36.630
Nodes.

00:59:37.010 --> 00:59:37.590
Get nodes.

00:59:37.830 --> 00:59:38.450
D.

00:59:38.450 --> 00:59:38.750
D.

00:59:39.390 --> 00:59:39.890
D E S.

00:59:39.890 --> 00:59:40.230
Enter.

00:59:41.970 --> 00:59:42.410
OK.

00:59:44.070 --> 00:59:44.670
OK, Charles.

00:59:44.790 --> 00:59:45.290
I'm not sure.

00:59:45.430 --> 00:59:46.690
I told you not to do these.

00:59:46.890 --> 00:59:49.130
I clearly told you why I repeat the same steps.

00:59:49.310 --> 00:59:49.470
Fine.

00:59:50.050 --> 00:59:50.990
So what did you do before?

00:59:51.150 --> 00:59:51.510
Do history.

00:59:51.850 --> 00:59:52.590
You are perfect.

00:59:52.690 --> 00:59:53.570
It's working fine.

00:59:53.750 --> 00:59:55.590
The reason I told you do not do the steps.

00:59:55.830 --> 00:59:56.030
OK.

00:59:56.110 --> 00:59:56.690
Do it clear.

00:59:57.690 --> 00:59:58.250
So control C.

00:59:58.510 --> 00:59:59.750
Why did you run the token on the master?

01:00:01.930 --> 01:00:03.910
Why did you run the token on the master?

01:00:04.110 --> 01:00:04.930
Why did you run it?

01:00:05.850 --> 01:00:06.790
You got the token.

01:00:06.950 --> 01:00:07.590
Why are you running again?

01:00:07.590 --> 01:00:08.710
Join command on the master.

01:00:08.810 --> 01:00:09.690
Are you getting it?

01:00:09.690 --> 01:00:11.090
What's the mistake you did?

01:00:12.710 --> 01:00:14.630
You're not supposed to run the joint command on the master.

01:00:14.890 --> 01:00:15.370
OK.

01:00:15.610 --> 01:00:19.290
So can you do apply that network?

01:00:20.390 --> 01:00:21.830
Yeah, the network command.

01:00:21.890 --> 01:00:24.010
Hyphen F. Enter.

01:00:25.450 --> 01:00:25.690
Yeah.

01:00:26.210 --> 01:00:31.770
Charles, you need to repeat the steps again because of something you've done on the master.

01:00:32.690 --> 01:00:33.510
So you have to be careful.

01:00:35.910 --> 01:00:37.250
So can you?

01:00:37.790 --> 01:00:38.990
What to do now?

01:00:39.090 --> 01:00:39.190
OK.

01:00:39.270 --> 01:00:40.430
Let's do the last step.

01:00:40.650 --> 01:00:41.490
Cubarium in it.

01:00:42.530 --> 01:00:42.970
Cubarium.

01:00:43.590 --> 01:00:44.030
Space.

01:00:44.570 --> 01:00:45.110
In it.

01:00:45.810 --> 01:00:46.210
Again.

01:00:47.030 --> 01:00:47.310
Enter.

01:00:47.510 --> 01:00:47.670
Cubarium.

01:00:47.770 --> 01:00:48.210
Reset.

01:00:48.330 --> 01:00:50.450
Hyphen F. Enforced.

01:00:50.810 --> 01:00:51.230
Cubarium.

01:00:51.350 --> 01:00:51.790
Reset.

01:00:51.910 --> 01:00:53.630
Hyphen F. Enforced.

01:00:53.870 --> 01:00:54.170
Enter.

01:00:55.690 --> 01:00:58.070
Did I understand what the mistake you did on this machine?

01:00:58.750 --> 01:01:00.270
Charles, I forget the token.

01:01:00.490 --> 01:01:01.990
Don't run the token on the master.

01:01:03.150 --> 01:01:04.850
So now do a cubarium space in it.

01:01:04.850 --> 01:01:05.270
Same thing.

01:01:05.270 --> 01:01:07.890
Suppose do a reset on all the machines and do properly.

01:01:08.050 --> 01:01:08.670
Is it OK?

01:01:10.290 --> 01:01:10.650
Yeah.

01:01:11.110 --> 01:01:11.770
Please go to your end.

01:01:12.450 --> 01:01:15.490
I think others are good till here.

01:01:15.630 --> 01:01:17.510
The master is ready now.

01:01:17.750 --> 01:01:18.610
Are you able to create pod?

01:01:19.990 --> 01:01:20.950
Please confirm.

01:01:22.770 --> 01:01:23.350
Gene is good.

01:01:26.410 --> 01:01:26.750
Yeah.

01:01:26.790 --> 01:01:27.330
Which one?

01:01:27.790 --> 01:01:28.570
Who is this speaking?

01:01:29.410 --> 01:01:29.890
Yes.

01:01:30.210 --> 01:01:30.970
Run the example.

01:01:31.790 --> 01:01:32.930
I understand.

01:01:33.350 --> 01:01:33.730
I understand.

01:01:33.730 --> 01:01:34.730
I understand.

01:01:34.830 --> 01:01:35.970
Get pods.

01:01:36.210 --> 01:01:37.030
Run example.

01:01:37.270 --> 01:01:37.990
Type in clear.

01:01:39.370 --> 01:01:39.810
Type clear.

01:01:39.870 --> 01:01:40.570
Type in again.

01:01:40.570 --> 01:01:41.530
Cubes will get pods.

01:01:41.750 --> 01:01:42.390
Type in worldwide.

01:01:43.390 --> 01:01:44.570
Run the same command.

01:01:46.050 --> 01:01:46.310
Yeah.

01:01:46.930 --> 01:01:47.170
Yes.

01:01:47.250 --> 01:01:47.650
Yes.

01:01:48.510 --> 01:01:50.790
Now do a cubesetl describe.

01:01:52.450 --> 01:01:53.610
Cubesetl describe.

01:01:54.150 --> 01:01:56.550
Type in cubesetl.

01:01:56.850 --> 01:01:57.730
Please type.

01:01:58.230 --> 01:01:58.750
Yes.

01:01:59.190 --> 01:01:59.770
Cubesetl.

01:01:59.830 --> 01:02:00.650
Same command.

01:02:00.970 --> 01:02:01.430
Yes.

01:02:01.570 --> 01:02:01.770
Cubesetl.

01:02:08.390 --> 01:02:11.690
C-R-I-B-E space.

01:02:12.050 --> 01:02:12.930
Pod space.

01:02:13.330 --> 01:02:13.590
Example.

01:02:13.910 --> 01:02:14.890
Spelling is wrong.

01:02:16.230 --> 01:02:17.750
Can you do Control C?

01:02:18.190 --> 01:02:18.610
Type in clear.

01:02:18.710 --> 01:02:19.870
Can you show the command what you've run?

01:02:20.450 --> 01:02:21.070
Use the apparel.

01:02:21.210 --> 01:02:21.870
Apparel again.

01:02:22.450 --> 01:02:22.830
Apparel.

01:02:23.870 --> 01:02:26.130
Show me the command where do you run to create a pod?

01:02:26.630 --> 01:02:27.310
Please use the apparel.

01:02:28.730 --> 01:02:29.410
One second.

01:02:29.970 --> 01:02:33.050
Okay, let's create new one more part. Okay, let's see if it's very simple.

01:02:34.790 --> 01:02:37.850
Let's add a new command now. Clear the screen.

01:02:39.210 --> 01:02:40.150
Type in clear.

01:02:41.270 --> 01:02:43.590
Or do a CTRL C. Do a CTRL C otherwise.

01:02:44.710 --> 01:02:46.770
See what you can do is you can use like this.

01:02:46.970 --> 01:02:47.550
Use the alias.

01:02:49.810 --> 01:02:50.210
ALIAS.

01:02:51.030 --> 01:02:51.630
Remove this.

01:02:53.750 --> 01:02:54.550
Backspace completely.

01:02:54.550 --> 01:02:58.550
Type in ALIAS.

01:03:00.730 --> 01:03:05.030
ALIAS space K equals.

01:03:05.030 --> 01:03:05.970
No space.

01:03:06.810 --> 01:03:07.690
CTRL.

01:03:10.370 --> 01:03:10.550
CTRL.

01:03:12.450 --> 01:03:12.630
Enter.

01:03:13.290 --> 01:03:15.070
Now it's the new one. Let's try a new one.

01:03:16.190 --> 01:03:16.610
K.

01:03:19.070 --> 01:03:20.550
Give a name as test this time.

01:03:20.890 --> 01:03:24.230
Give a different name for the part.

01:03:24.710 --> 01:03:25.110
Test or something.

01:03:27.150 --> 01:03:28.370
hyphen hyphen image.

01:03:28.450 --> 01:03:30.850
hyphen hyphen image equals.

01:03:31.890 --> 01:03:32.570
NGINX.

01:03:33.150 --> 01:03:33.830
INX.

01:03:36.770 --> 01:03:36.890
NGINX.

01:03:37.550 --> 01:03:38.870
After G it is I.

01:03:39.810 --> 01:03:40.450
X. Enter.

01:03:41.550 --> 01:03:41.910
Enter.

01:03:43.210 --> 01:03:44.290
Now do a get pods.

01:03:44.930 --> 01:03:45.890
Get pods.

01:03:45.970 --> 01:03:46.510
Get pods.

01:03:46.510 --> 01:03:47.430
K.

01:03:47.550 --> 01:03:48.790
Get pods.

01:03:50.190 --> 01:03:50.710
Hyphen.

01:03:50.950 --> 01:03:51.450
This is running.

01:03:52.650 --> 01:03:53.890
So the biggest of the messages.

01:03:54.630 --> 01:03:55.450
Okay fine.

01:03:57.130 --> 01:03:59.910
Okay Charles I would request you to do the break properly.

01:04:00.050 --> 01:04:00.570
The steps.

01:04:00.950 --> 01:04:02.190
It must be running in.

01:04:02.190 --> 01:04:04.190
We got it typed twice to properly clear.

01:04:04.390 --> 01:04:05.670
Okay let's see the step.

01:04:05.890 --> 01:04:07.470
What is happening to.

01:04:08.390 --> 01:04:09.250
What I need to do now.

01:04:09.250 --> 01:04:10.090
No.

01:04:10.870 --> 01:04:13.490
It will not work because your master.

01:04:13.990 --> 01:04:14.670
It is corrupted.

01:04:15.190 --> 01:04:17.650
Do a reset again. Please do a reset again.

01:04:18.130 --> 01:04:18.950
On all the nodes.

01:04:20.670 --> 01:04:21.250
On the master.

01:04:22.590 --> 01:04:23.450
Working is fine.

01:04:24.010 --> 01:04:25.530
Do a reset on the master.

01:04:25.790 --> 01:04:26.870
Cube ADM reset.

01:04:26.890 --> 01:04:29.510
Hyphen force. Do the sets properly.

01:04:29.890 --> 01:04:30.910
Get a new token.

01:04:31.670 --> 01:04:33.370
And then do it. I'll help you out.

01:04:34.070 --> 01:04:35.610
Charles I'll help you out in the break now.

01:04:35.750 --> 01:04:37.710
So you won't be hold. Others going to take a break now.

01:04:37.710 --> 01:04:39.150
Short break. Yeah.

01:04:39.790 --> 01:04:41.610
So we'll take it.

01:04:41.610 --> 01:04:42.970
Because he's still doing the lab.

01:04:43.150 --> 01:04:44.130
So let's say 15 minutes.

01:04:45.730 --> 01:04:47.450
We'll come and explain other things.

01:04:48.530 --> 01:04:48.730
Okay.

01:04:49.090 --> 01:04:51.330
So now once again.

01:04:51.930 --> 01:04:53.230
Do a cube ADM.

01:04:53.350 --> 01:04:54.670
Reset it. What did you do now?

01:04:56.090 --> 01:04:57.390
Okay press enter.

01:04:58.370 --> 01:04:59.290
Press enter.

01:05:00.670 --> 01:05:01.130
Enter.

01:05:02.270 --> 01:05:03.730
Now please do the steps.

01:05:04.030 --> 01:05:04.850
And listen and tell you.

01:05:04.850 --> 01:05:07.430
I'll tell you what command to run next once it is done.

01:05:07.990 --> 01:05:09.330
Okay. Now in the chat.

01:05:09.610 --> 01:05:10.470
Don't do anything else.

01:05:10.730 --> 01:05:13.070
In the chat I've pasted three commands.

01:05:14.070 --> 01:05:15.210
Run the three commands.

01:05:15.450 --> 01:05:16.530
On the master. Choose yes.

01:05:16.650 --> 01:05:17.370
Choose why.

01:05:19.430 --> 01:05:21.110
Why why why.

01:05:21.430 --> 01:05:22.830
Enter. Wait now.

01:05:23.210 --> 01:05:24.730
Now paste this command.

01:05:25.730 --> 01:05:27.870
One second. Did you apply it?

01:05:27.870 --> 01:05:28.350
Yeah.

01:05:28.690 --> 01:05:30.370
So now paste the next command.

01:05:31.530 --> 01:05:32.650
Now copy.

01:05:32.650 --> 01:05:34.390
Maximize this window.

01:05:35.190 --> 01:05:36.230
Copy the token.

01:05:37.850 --> 01:05:38.470
Go to your

01:05:38.470 --> 01:05:40.410
worker one. Worker three.

01:05:40.730 --> 01:05:42.990
Worker three. We didn't copy it completely.

01:05:44.410 --> 01:05:45.590
Right click.

01:05:46.750 --> 01:05:47.510
And paste.

01:05:48.170 --> 01:05:50.630
Press enter. Okay. Type in cube ADM.

01:05:50.810 --> 01:05:52.090
You didn't notice it before.

01:05:52.410 --> 01:05:53.990
Cube ADM space.

01:05:54.790 --> 01:05:56.750
Reset hyphen hyphen force.

01:05:58.090 --> 01:05:58.810
Space hyphen

01:05:58.810 --> 01:05:59.490
F and force.

01:06:01.030 --> 01:06:01.590
Yeah.

01:06:02.010 --> 01:06:02.490
Enter.

01:06:03.330 --> 01:06:04.410
Don't do anything now.

01:06:04.730 --> 01:06:06.910
Okay. Now paste the token again.

01:06:08.290 --> 01:06:09.030
Right click.

01:06:10.250 --> 01:06:10.550
Paste.

01:06:11.550 --> 01:06:12.010
Enter.

01:06:13.330 --> 01:06:14.030
Okay. Now wait.

01:06:15.370 --> 01:06:16.470
Now go to the master.

01:06:16.590 --> 01:06:19.610
So you can make it simple. Type in alias.

01:06:20.590 --> 01:06:21.150
ALIAS.

01:06:22.850 --> 01:06:23.850
K equal to

01:06:23.850 --> 01:06:24.630
cube CTL.

01:06:25.210 --> 01:06:27.030
K. Alphabet K.

01:06:27.030 --> 01:06:38.130
just type in alphabet k k equals small small k equal to cube ctl k u be k u be ctl enter

01:06:38.870 --> 01:06:50.410
yes now get nodes just type in k space get space nodes k k get nodes k one space and get node

01:06:50.410 --> 01:06:57.830
enter okay now go to the worker three four do a queue okay i think done the token copy the token

01:06:57.830 --> 01:07:02.330
and paste it just right click i think i'll copy this right click in your work of four

01:07:03.750 --> 01:07:10.570
paste it enter okay do a reset cube adm reset hyphen as enforced enter filling is wrong

01:07:10.570 --> 01:07:15.310
enter right click and paste the token enter now go to the master run the same command

01:07:15.310 --> 01:07:26.190
you ran before yes enter right now we'll do one more command k k run k space run

01:07:27.750 --> 01:07:33.950
space test hyphen hyphen image equal to no no image it is not images equal to

01:07:35.400 --> 01:07:49.740
n g i n x n g i n x i n x enter enter now k get parts k get part hyphen o

01:07:51.280 --> 01:07:59.720
space hyphen o space white w i d enter all good okay okay we'll take a break now and come back

01:07:59.720 --> 01:08:09.940
welcome back this so now let's go back to the document and we're not we skipped

01:08:09.940 --> 01:08:14.680
10 steps in the documents open a notepad and the lab one let's run this command

01:08:15.340 --> 01:08:24.120
because everyone to make a short form of alias once again not able to make it small

01:08:25.080 --> 01:08:29.940
who says i'm scanning the screen i get confused okay okay

01:08:33.060 --> 01:08:39.140
so many screens i'm seeing from the morning okay okay sorry for that yeah so

01:08:40.780 --> 01:08:47.200
now i'm not using alias because everyone's easier for you so choose alias k equal to

01:08:47.200 --> 01:08:57.980
ctl first yeah so now you say choose ctl api hyphen resources so when you do this

01:08:57.980 --> 01:09:03.160
to give you all the objects information

01:09:06.620 --> 01:09:08.640
yeah give you all the object information

01:09:09.880 --> 01:09:20.160
so you see components endpoints evens parts all these are the objects

01:09:21.640 --> 01:09:26.040
and which api version is using you see in the next column which api versions

01:09:27.040 --> 01:09:33.600
the short form this is part of this whenever you want to know which api version what are

01:09:33.600 --> 01:09:40.880
object the nicknames we use the k cubes ctl api hyphen resources now you might want to

01:09:40.880 --> 01:09:50.000
understand more about any object so what you can do is you can use cubes ctl explain and

01:09:50.620 --> 01:09:58.080
like parts and that will let you know what exactly this object what is it

01:09:58.470 --> 01:10:08.550
what the api version what fields are supposed to use is a piece now if i open the part for

01:10:08.550 --> 01:10:15.350
example let's show a lab and now i open the lab for the part and now you see a

01:10:15.350 --> 01:10:22.490
syntax of it a syntax says api version kind metadata so now when you see the

01:10:22.490 --> 01:10:32.630
the explain output you can easily start writing in the pod yaml file it says api version so it's

01:10:32.630 --> 01:10:40.870
your field it requires api version so api version is b1 kind is pod the fields you see

01:10:40.870 --> 01:10:48.010
api version kind metadata new so metadata means name of the part and the specifications

01:10:48.650 --> 01:10:53.690
so whenever you want to understand what exactly the object and the syntax of it

01:10:54.730 --> 01:11:01.110
cubes ctl explain the object name are we good everyone

01:11:03.030 --> 01:11:09.050
yeah yeah so this is how we get started so in brief about this lab we learned about how to

01:11:09.050 --> 01:11:13.710
install let me summarize this lab we first created three machines we already have three

01:11:13.710 --> 01:11:21.810
in our use case we set the host names we installed utilities initially and then

01:11:21.810 --> 01:11:34.130
install the main components and be able to all good okay now what are namespaces the next topic

01:11:34.830 --> 01:11:37.390
what do you think in namespace what could be a namespace anyone

01:11:38.070 --> 01:11:44.730
must write this is a diagram you tell me what would be namespace sorry are you talking i can't hear

01:11:48.330 --> 01:11:53.550
okay nobody's talking fine so what is namespace right now we have a cluster

01:11:54.750 --> 01:12:02.950
now this cluster resources has to be used by two teams so we want the resources to be

01:12:02.950 --> 01:12:12.490
separated so within the cluster this could be project a and this could be for project b and

01:12:12.490 --> 01:12:19.110
if users a b c they are working in your office they're working on the project they get access

01:12:19.110 --> 01:12:25.790
to this namespace like namespace one there are developers or users working on this project

01:12:25.790 --> 01:12:33.310
they get access to this namespace like ns2 so each one cannot see what is happening in the

01:12:33.310 --> 01:12:40.190
other project this logical separation of the resources within the cluster is called the namespace

01:12:41.490 --> 01:12:48.370
and inside this administrators can define what you all can do how many parts you can create

01:12:48.370 --> 01:12:52.790
what you can do to what level you can do this one namespace so we use namespace for logical

01:12:52.790 --> 01:12:58.390
segregation and you can also define what the users can do inside the namespace

01:12:59.650 --> 01:13:05.450
are we good when you install kubernetes it creates three namespaces now could you tell me

01:13:05.450 --> 01:13:11.570
the parts got created in which namespace anyone in which namespace the part which

01:13:11.570 --> 01:13:16.510
you created the example in which namespace got created let's see namespace let's see this

01:13:16.510 --> 01:13:21.330
so why use namespaces they use cases now let's go and see

01:13:21.950 --> 01:13:30.310
how do you work with namespaces or resources we have two methods either so i will first get

01:13:30.310 --> 01:13:35.230
the namespaces or i can use the nickname namespaces

01:13:38.830 --> 01:13:42.390
so these are default namespaces already created

01:13:43.790 --> 01:13:47.910
so now can i do a describe so if you want any specific namespace i say get

01:13:48.950 --> 01:13:55.510
ns start form or i can also say default the namespace name i want to see what exactly namespace

01:13:56.590 --> 01:14:04.710
and use get if you want to get more information i can use work describe describe namespace

01:14:05.510 --> 01:14:13.290
and the default so when you get of the object type will give all the all the objects under

01:14:13.290 --> 01:14:22.050
that object type if you want to get any then you mention the name of it you want to describe

01:14:22.050 --> 01:14:26.150
you say describe the object type with namespace and the name of the namespace

01:14:27.490 --> 01:14:39.130
these are the graphs now can we create so now when i do get parts you see that it doesn't have

01:14:39.130 --> 01:14:45.870
you're not sure you won't know which namespace it is so when you don't mention any specific

01:14:45.870 --> 01:14:53.750
namespace it will get created in your default namespace now for example one different

01:14:53.750 --> 01:15:03.270
namespace i can say get namespaces namespace equals cube hyphen system this will show all the

01:15:03.270 --> 01:15:12.430
parts in this namespace very good if you don't make any space it'll always go to your default

01:15:12.430 --> 01:15:18.270
namespace if you want a specific namespace you have to explicitly call the namespace

01:15:18.270 --> 01:15:22.690
are we clear for some reasons one of the parts are going down that cash flow pack

01:15:25.710 --> 01:15:33.470
how do you create a namespace now so i can create namespace by create

01:15:36.930 --> 01:15:44.750
namespace short form and ns and i can give like a test you got created how do you check it

01:15:44.910 --> 01:15:53.710
i can do a get ns you see it is created you see the information about it i can show or describe

01:15:57.610 --> 01:16:03.690
ns or namespace the name of it

01:16:04.310 --> 01:16:10.630
i'll give time for your lab this one method other method is i cannot use yaml file i can

01:16:10.630 --> 01:16:24.050
say vi the yaml name file name insert mode the first line is api version colon one space v1

01:16:24.050 --> 01:16:33.990
next kind colon the typist namespace enter now what is the name of it that will get imagined

01:16:33.990 --> 01:16:46.970
metadata metadata enter and give two spaces you have to write yaml like this v5 version

01:16:46.970 --> 01:16:55.670
colon one space v1 kind one space metadata so i want this file so i save this file

01:16:56.890 --> 01:17:05.030
and i can either use apply or create so i say apply which in which file name hyphen f

01:17:05.790 --> 01:17:14.030
and the file name i will go and check will got created i do get ns and you see this created

01:17:16.150 --> 01:17:23.130
this is how you work with your kubernetes yaml files either you can use the imperative method

01:17:23.130 --> 01:17:29.390
command line or you can also use a yaml method so now for example i do not have a yaml file

01:17:29.390 --> 01:17:36.330
i want to see what is exactly happening inside a pod for example and say get ns or namespace

01:17:36.970 --> 01:17:44.910
and i can also say example hyphen o and the yaml format so i can see what is happening

01:17:44.910 --> 01:17:50.630
anytime when you object in the yaml format so now i can see the configurations

01:17:52.830 --> 01:17:56.810
and if you want you can also copy this to different yaml file for example i want to

01:17:56.810 --> 01:18:00.150
rewrite something like this i can copy different yaml file you'll get copy the contents

01:18:00.930 --> 01:18:05.950
and then i can open the three dot yaml file for example and i can modify the contents

01:18:06.630 --> 01:18:10.790
like this we can play around are we good

01:18:15.190 --> 01:18:23.870
okay now i want you to do a lab so go to labs under ns and pods lab one

01:18:25.370 --> 01:18:34.110
play around the first part yourself till do to resource quota try to create play around till

01:18:34.790 --> 01:18:40.650
here but replace the name with the name what you want to give please play around with this

01:18:40.650 --> 01:18:46.530
module two labs lab one like you but exchanges and pods please start

01:19:47.590 --> 01:19:52.570
yes are we good okay okay gene you're good next step i have not talked about the quota

01:19:54.630 --> 01:20:02.450
gene sorry gene can you hear me gene can you hear me we still not talked about quota

01:20:03.490 --> 01:20:07.190
i'm still not talked about i told you this dude on the namespace first part

01:20:07.830 --> 01:20:14.130
yeah just hold on here no problem others just create the namespace okay we're good chance

01:20:16.090 --> 01:20:20.490
we're good chance do not do these resource quota just do the first part that's what i

01:20:20.490 --> 01:20:27.670
told you not talked about this okay now let me explain so team can you do a hyphen o y

01:20:27.670 --> 01:20:35.470
is it happening wanting for worker one let's see for which one node run this command

01:20:36.350 --> 01:20:42.910
and tell me on which node are you having the problem get pods namespace system

01:20:44.230 --> 01:20:54.110
what me on which node you see this is worker one or on which node you see a crash loop back

01:20:55.130 --> 01:21:01.870
okay one others that is running actually is running for you right now

01:21:03.110 --> 01:21:06.470
okay okay let's see let's figure it out i think we are to again

01:21:06.470 --> 01:21:10.570
i'm not sure why is it having one new worker one sometimes it's very strange

01:21:14.370 --> 01:21:21.070
okay so what about you ck but you also is working on worker one

01:21:27.470 --> 01:21:33.990
okay fine let's see uh next let's proceed uh so what is this was put us

01:21:34.710 --> 01:21:42.190
now let's consider that we have two teams so let me explain this now let's consider that

01:21:42.190 --> 01:21:48.970
now we have two projects was it a i'm working on project b and they are using namespace

01:21:48.970 --> 01:21:57.830
be namespace one and namespace two now total cluster resources were 100 b c p o

01:21:57.830 --> 01:22:05.690
it had 100 gb now if this team or the project one consumes all of them

01:22:06.770 --> 01:22:13.810
then nothing would be there for the project two understanding are we good if project

01:22:13.810 --> 01:22:18.190
one consume everything in here then project two cannot do anything because they need some

01:22:18.190 --> 01:22:24.110
resources so this is where we can get a certain quota that for this namespace

01:22:24.710 --> 01:22:34.210
maximum is 50 v cpo 50 gb ram and again 50 gb these things so we can define some resources

01:22:34.210 --> 01:22:40.890
like cpo put a memory disk storage we can restrict it by using a quota that is one quota

01:22:40.890 --> 01:22:47.230
second one is you can also restrict the numbers that in this namespace the team

01:22:47.230 --> 01:22:52.930
cannot create more than 10 parts in this namespace cannot create more than 10 parts

01:22:52.930 --> 01:22:59.630
so we can define resource quotas both on resources as well as the number of objects

01:22:59.630 --> 01:23:05.870
what could be created in that namespace so very special namespace so namespace

01:23:05.870 --> 01:23:14.710
resource quota is all about managing resources example this is my use case there are two

01:23:14.710 --> 01:23:22.370
teams so now i want to allocate like this so i define a resource quota that you cannot go

01:23:22.370 --> 01:23:27.630
beyond this because there's a requirement for both of the work so you have to be careful

01:23:27.630 --> 01:23:32.230
when you work for production because in live environment it could be more users keep on

01:23:32.230 --> 01:23:37.050
coming in so be very careful in different resource quotas on your live but for testing

01:23:37.050 --> 01:23:41.810
you can play around but for live we are very very careful because of the resource quotas they

01:23:41.810 --> 01:23:48.290
cannot create some resources so for production you might want to say complete or you might want

01:23:48.290 --> 01:23:57.970
to be careful yeah so let's do this lab the second part explain and i want to do yourself

01:23:58.710 --> 01:24:04.050
okay now i'm getting a namespace and in this namespace i want to restrict the resources

01:24:05.130 --> 01:24:15.510
so what i do i would create a resource quota then resources and then apply it while applying it

01:24:15.510 --> 01:24:20.630
i'll mention the namespace so this resource quota applies on this namespace now going further

01:24:20.630 --> 01:24:28.030
i will go ahead and get the resource quota and observe it now i create a part first time

01:24:28.030 --> 01:24:35.630
is within the limits so what does request means request means what you assigning it

01:24:37.310 --> 01:24:45.610
and limits means to what level it can go later it'll work now i'll go and again check

01:24:46.330 --> 01:24:53.790
now what i do i'll again create one more part right now it is has six and is used

01:24:53.790 --> 01:25:01.230
i have only 400 so now i'm asking for memory 700 but we have only 400 so you see this

01:25:01.810 --> 01:25:07.370
i'm asking for more it will not get created you get an error message are getting it everyone

01:25:08.770 --> 01:25:14.190
let me let us see a documentation so let me i just want to example first so that

01:25:14.190 --> 01:25:18.230
it will be easier for you to understand and then to go reverse i go to resource quotas

01:25:18.230 --> 01:25:23.530
and type it so resource quotas defined by a resource quota object provides constraints

01:25:24.710 --> 01:25:35.050
so you can define it for limits or request request in Asia and limit system maximum where it can go

01:25:35.790 --> 01:25:42.490
we can do it for storage we can define it for objects numbers that don't create more than

01:25:42.490 --> 01:25:47.590
three parts four parts like this we can define and we can define for all these config maps

01:25:47.590 --> 01:25:54.230
we can define for parts we can define for resource quotas services for all these things

01:25:55.610 --> 01:26:00.910
so very brief these are important one that you remember we normally define resource quotas

01:26:00.910 --> 01:26:06.530
for number of parts we define resource quest resource for cpu memory all these are important

01:26:06.530 --> 01:26:15.910
ones yeah understood the use of resource quota now standard it is across the cluster

01:26:17.290 --> 01:26:23.970
namespace cluster yes so example if you observe this output what we ran

01:26:25.530 --> 01:26:32.930
in here you see that the namespace of this your cube system it is across master and all

01:26:32.930 --> 01:26:45.950
the nodes getting it so namespace is part it is not this you and note it is for the

01:26:45.950 --> 01:26:50.570
do the remaining one do till here completed let me know if any questions

01:26:50.570 --> 01:26:53.490
in the middle i'm checking for the lab the backend issue to complete this let

01:26:53.490 --> 01:26:56.510
me check what is happening in the back end

01:27:05.030 --> 01:27:05.670
so

01:27:05.670 --> 01:27:14.890
because for example uh they're able to create a cluster but on one of the two

01:27:15.730 --> 01:27:21.390
vnet sometimes goes to crash to back off more reports of the running is there any any

01:27:21.390 --> 01:27:22.410
firewall or something sometimes

01:27:22.410 --> 01:27:32.570
i mean

01:27:43.130 --> 01:27:45.770
is the storage anything anything less than eight something

01:27:52.410 --> 01:27:52.950
okay

01:28:12.930 --> 01:28:15.730
i'm back

01:28:22.030 --> 01:28:22.630
okay

01:28:23.970 --> 01:28:28.850
so i'm checking what could be done for you're questioning and asking and help you

01:28:45.650 --> 01:28:46.130
so

01:28:46.130 --> 01:28:51.810
excuse me everyone so on your work of one remember this is the work of one which we

01:28:51.990 --> 01:29:01.190
use for your docker lab correct everyone so we do a ls you see additional files are

01:29:01.190 --> 01:29:11.030
there word project one and snap are getting it so do a ls and you see some files so

01:29:11.340 --> 01:29:11.980
are there

01:29:20.340 --> 01:29:29.820
you see some files so let's remove some folders so i can say rm hyphen word

01:29:31.720 --> 01:29:40.060
you can also see rm hyphen rf snap and also remove this project one

01:29:42.280 --> 01:29:46.580
because the space can be the same mission we can still extend but i just want to ensure

01:29:46.580 --> 01:29:53.660
that before it does remove the folders rm minus rf and the names of the folders are

01:29:53.880 --> 01:30:02.440
good project one snap and word you can remove it and then check on the master does it improve

01:30:36.600 --> 01:30:38.000
you

01:31:11.040 --> 01:31:12.220
are you done

01:31:18.680 --> 01:31:19.280
so

01:31:19.280 --> 01:31:24.340
remove the additional folders that's fine that's fine will it look little that's fine just

01:31:24.340 --> 01:31:31.420
remove the real folders word snap one and project one okay so namespace lab that

01:31:31.420 --> 01:31:37.380
quota lab is done okay ck you want to remove the folder rm one okay good did you get it

01:31:37.380 --> 01:31:46.400
so now let's do together one more lab in namespace quotas together now so now next lab the link is

01:31:46.400 --> 01:31:56.000
there on lab one this is done done go down let's do this lab together you tell me what

01:31:56.000 --> 01:32:01.240
happening this lab i want you to answer this please what is happening in this lab access

01:32:01.240 --> 01:32:06.360
the link and please let me know what what exactly is happening in this lab

01:32:08.040 --> 01:32:13.040
anyway yes that's it so in this we're trying to do deployment not talked about it we'll do

01:32:13.040 --> 01:32:18.700
this later so what we'll now do is we'll just apply this and try to manually create a part

01:32:18.700 --> 01:32:26.780
in the same namespace do a manual method okay so go ahead and do this one don't the

01:32:27.340 --> 01:32:34.240
manual method does still not learn the other method so for example i create a namespace so

01:32:34.240 --> 01:32:40.160
for example has home in needspaces so i want to apply contest namespace so i'll say

01:32:40.160 --> 01:32:45.420
resource quota dot yaml and i paste the yaml file

01:32:53.520 --> 01:32:54.720
and now

01:32:55.580 --> 01:33:04.840
while applying it be careful you have to apply the specific resource quota the namespace

01:33:04.840 --> 01:33:18.080
and space equals to test any any namespace which are you get resource quotas and you can

01:33:18.080 --> 01:33:24.720
see 202 so i can say part one

01:33:36.720 --> 01:33:37.760
create one more part

01:33:40.560 --> 01:33:41.680
the same namespace

01:33:43.300 --> 01:33:48.120
and create a third part it must give you an error message

01:33:56.940 --> 01:33:58.840
have a good

01:34:02.760 --> 01:34:06.760
that's a small example in the dog that link they give you a deployment not

01:34:06.970 --> 01:34:12.330
deployment in which i can create multiple copies in a manual one so you can use any namespace

01:34:12.970 --> 01:34:19.010
try to create do not get third one because mention the numbers that not more than two

01:34:19.010 --> 01:34:25.630
have a good so this is how we can restrict the resources as well as the numbers on a

01:34:25.630 --> 01:34:30.190
specific namespace good now i'll wait for you

01:35:08.350 --> 01:35:09.750
you

01:35:33.110 --> 01:35:41.830
yeah you're good then you're one second your namespace is test it is equals to

01:35:41.830 --> 01:35:46.590
test part one and hyphen as an image namespace equals to test and then use

01:35:46.590 --> 01:35:53.750
up that again in the same command make it to two again try third one good it is equal equals

01:35:53.750 --> 01:36:02.390
no colon not there under before engine x yeah that's equal they still have an end

01:36:02.390 --> 01:36:08.350
or namespace namespace yeah okay i'm gonna play the quota you're doing small mistake

01:36:08.350 --> 01:36:16.810
uh do control c do apparel use apparel type in apparel apparel once more once more you see a

01:36:16.810 --> 01:36:18.750
is there before the quota

01:36:20.570 --> 01:36:29.510
yes now done it again once again let's do a different name okay that's fine yeah now

01:36:29.510 --> 01:36:36.730
do get parts do get part before the next step do it get for enter so use a different name

01:36:36.730 --> 01:36:44.750
properly so test part one three start from four now because made a mistake we did not get

01:36:45.390 --> 01:36:51.370
four five six first do a four check for the property gets created first do get parts

01:36:52.370 --> 01:36:56.110
i can see it do you see the output is running i can see seeking type it clear please

01:36:57.250 --> 01:37:04.130
type in clear get parts enter what happened no no no no you're supposed to mention the

01:37:05.550 --> 01:37:05.990
namespace

01:37:05.990 --> 01:37:14.430
um the mistake from that time okay sorry uh get parts no no no get parts yes this is

01:37:14.430 --> 01:37:23.230
upper again refresh so getting greater the same command we ran before just run the same

01:37:23.230 --> 01:37:29.910
command and see you just got created the four no no no okay fine do fine do fine yeah

01:37:31.690 --> 01:37:41.810
yes yeah yes yes the mistake are we good okay fine this is about your namespaces any questions

01:37:42.670 --> 01:37:51.150
everyone now let's go and delete this because only parts let's delete the parts which is in

01:37:52.110 --> 01:37:57.550
so say delete parts and mention

01:38:00.870 --> 01:38:06.510
hyphen hyphen namespace equal to cube hyphen system

01:38:08.210 --> 01:38:13.650
okay so you can say delete parts hyphen hyphen all

01:38:16.430 --> 01:38:19.210
run this command let me give the command a chance

01:38:21.150 --> 01:38:23.950
to use all and you also also use the namespace

01:38:25.610 --> 01:38:26.630
because

01:38:32.330 --> 01:38:47.790
and now when you see all namespaces hyphen o wide and your webnet must be good now let's wait

01:38:47.790 --> 01:38:51.130
just trying to refresh okay

01:38:55.350 --> 01:38:58.990
and also delete the parts in your default namespace

01:39:05.510 --> 01:39:07.270
run both these commands

01:39:09.390 --> 01:39:13.310
and then check in this command so that we are good now whether

01:39:15.260 --> 01:39:16.520
you see it is running now

01:39:18.160 --> 01:39:22.720
whenever you do something delete it because space sometimes any index in the storage

01:39:23.720 --> 01:39:27.320
are good now is everything running now

01:39:39.160 --> 01:39:40.560
do

01:39:40.560 --> 01:39:41.160
you see the error

01:39:45.480 --> 01:39:51.400
it gone okay

01:39:57.520 --> 01:40:02.360
yeah these two you can skip but others you can find okay let's proceed

01:40:04.440 --> 01:40:07.460
that's fine the last one is crashed that's fine we're talking about the main command

01:40:07.460 --> 01:40:12.680
getting it the main was important the main master everything is running others that's

01:40:12.680 --> 01:40:18.940
fine because you're terminating is fine the main ones are running fine okay so because of

01:40:18.940 --> 01:40:26.180
the storage issue the next topic is parts let me now talk about the parts what are parts

01:40:26.180 --> 01:40:33.960
the parts are inside the namespace the parts are inside this is your namespace

01:40:33.960 --> 01:40:38.660
and inside this is your part and into the part i have two contain example

01:40:39.480 --> 01:40:44.260
it looks something like this a part can have one container or multiple containers

01:40:45.160 --> 01:40:51.820
the example of a node in which you see that it has multiple parts

01:40:52.380 --> 01:40:58.020
for a single container or multiple container let me let me maximize this so when you see

01:40:58.020 --> 01:41:04.440
this diagram this is your node for example the node has one container or multiple parts

01:41:04.440 --> 01:41:09.180
you can have these are node loads yeah this is your node like a worker node and your one

01:41:09.180 --> 01:41:14.400
how many parts we have in this how many parts we have in this diagram four parts

01:41:14.980 --> 01:41:20.460
and this part has one container there's a two containers and storage still normally you can

01:41:20.460 --> 01:41:25.200
use the outside and these are three parts two country containers so they all use the same

01:41:25.200 --> 01:41:31.020
ip this could be on port 80 this could be on port 8080 this could be on port 8000

01:41:32.440 --> 01:41:39.600
so all the containers in the part they use the same ip but exports on different port numbers

01:41:39.600 --> 01:41:45.360
so we are different types of part we can have two containers in here could you tell me why

01:41:45.360 --> 01:41:49.920
are you are using two containers why not one why i talked about two containers why not one

01:41:49.920 --> 01:41:54.980
the use case by talking to containers in here so this is an example of a website this hosted

01:41:55.660 --> 01:42:03.380
so if a node the storage is the volume is on the node i have two containers which is file

01:42:03.380 --> 01:42:10.560
pull on the web server what is this using this for a website this facing the customer

01:42:10.560 --> 01:42:18.880
website and this is what is it gets into images from internet and downloads the images

01:42:18.880 --> 01:42:23.680
from internet and save this in the shared volume the same volume is shared across the

01:42:23.680 --> 01:42:29.360
other container it picks up the images what has been done and it will show in the website

01:42:30.820 --> 01:42:35.680
getting it everyone so any part remember that there will be one main application

01:42:35.680 --> 01:42:42.760
other one would be helping the main application because if this thing has need to do both the

01:42:42.760 --> 01:42:50.000
might be slow performance issues so we use multiple containers in a part where

01:42:50.000 --> 01:42:53.820
we have one would be a main other would be helping the other containers

01:42:54.600 --> 01:43:00.900
and they can have in the common data to be shared using a volume this is how the port

01:43:00.900 --> 01:43:06.780
works it's not a mandate that you have two port two containers one two three it's up to

01:43:07.340 --> 01:43:14.020
but we do not want to mix multiple applications one for example in this example i have a shared

01:43:14.020 --> 01:43:22.480
volume with my one other one is used for log saving the logs you can have something like

01:43:22.480 --> 01:43:27.640
this in which i have the main application there's a proxy so whenever it has to go

01:43:27.640 --> 01:43:32.500
to outside world it goes through a proxy and i'm not installing proxy agent inside

01:43:32.500 --> 01:43:38.500
a separate container we could also have in some like this so i'm having monitoring agent

01:43:38.500 --> 01:43:45.220
inside this this is going to get in all the information and push it or

01:43:45.220 --> 01:43:53.380
with a log to some monitoring tools so we separate containers for making the work much

01:43:54.180 --> 01:44:05.300
which is our main one yeah so question for you so can i have in a pod both a web and database

01:44:06.020 --> 01:44:11.760
is a good use case in a pod is a good practice to have both web application

01:44:11.760 --> 01:44:15.420
and database in the same port what do you think anyone tomorrow for example you want

01:44:15.420 --> 01:44:19.220
to give access to someone you give access to a part correct for example your developer

01:44:19.900 --> 01:44:26.540
friend and developer you give access to a part now the he's also getting access database

01:44:26.540 --> 01:44:30.440
getting it understanding this yes no so you cannot give access database for a friend and

01:44:30.440 --> 01:44:35.240
developer are getting it because his work is only for writing the code the front and on the

01:44:35.240 --> 01:44:42.820
back so always do not mix multiple things so make it very simple we have one main application

01:44:42.820 --> 01:44:50.300
then the other containers and they get in the ips using the cni now let's do this no good okay

01:44:50.300 --> 01:44:58.300
fine now let's do the lab 2 i'll explain this so lab 2 we can create a pod simple example one

01:44:58.300 --> 01:45:05.120
port name you can use nginx or you can also use or you can use htpd so you can if you

01:45:05.120 --> 01:45:10.880
find it difficult that you can also use one more image which is htpd any image you can use

01:45:12.400 --> 01:45:19.100
htpd so i'm trying to create a pod and then seeing the yaml file of it sometimes you

01:45:19.100 --> 01:45:23.560
might want to find the pod id use the syntax you replace the port name the port name what

01:45:24.280 --> 01:45:27.520
you created let's play around this let's play around with this command

01:45:28.500 --> 01:45:31.960
okay different part and get the pod id

01:45:45.720 --> 01:45:47.120
okay

01:45:57.720 --> 01:46:02.880
And you can also give a different image name.

01:46:04.620 --> 01:46:07.880
And get the pods with an O and Y.

01:46:14.220 --> 01:46:14.800
It's running.

01:46:18.680 --> 01:46:20.780
Pod and the pod name.

01:46:21.960 --> 01:46:23.340
Type in O and YAML.

01:46:24.580 --> 01:46:28.140
And see the config, whatever you want to see in the YAML, you can observe it.

01:46:31.880 --> 01:46:34.140
And also find the pod ID, play around.

01:46:40.120 --> 01:46:46.620
That's fine. Charles, what you do is you do a get pod, the pod name hyphen O YAML.

01:46:47.940 --> 01:46:54.140
Hyphen O hyphen small o hyphen hyphen O space YAML via YAML.

01:46:56.440 --> 01:46:56.840
Enter.

01:46:57.360 --> 01:46:59.780
So now you can see the config in the YAML format.

01:47:00.400 --> 01:47:06.160
So when you want to know what exactly is in here, you can go ahead and see the details of the pod.

01:47:06.280 --> 01:47:08.300
What are the fields? What does the detail have?

01:47:12.720 --> 01:47:15.980
Okay, try to get the pod ID.

01:47:16.040 --> 01:47:20.160
Get the pod ID, modify the name of the pod name in the next one.

01:47:20.160 --> 01:47:25.180
Copy this. In this command, replace your pod name with the pod that you created.

01:47:27.100 --> 01:47:29.800
And copy it and run that command.

01:47:30.540 --> 01:47:34.160
Replace the pod name with your name, name of the pod.

01:47:43.160 --> 01:47:45.000
So this is your pod ID.

01:47:46.240 --> 01:47:49.160
Sometimes when you do some operations, you might require a pod ID.

01:47:49.760 --> 01:47:52.160
This is how we get in the information using a JSON path.

01:47:55.120 --> 01:48:00.820
Any questions team of namespaces, resource quotas, and the pods? What are they till now?

01:48:01.860 --> 01:48:03.380
Any questions? Okay.

01:48:03.880 --> 01:48:06.080
So is it 12.30? This is your lunch time. Correct?

01:48:06.100 --> 01:48:09.120
It will be 45 minutes or you need one hour break? What are you asking?

01:48:09.340 --> 01:48:11.520
How much time we require? One hour or 45 minutes?

01:48:12.160 --> 01:48:12.880
One hour.

01:48:13.480 --> 01:48:15.380
Okay, so you have to cook and eat.

01:48:17.660 --> 01:48:22.980
Okay, no problem. Others? One hour is okay? Everyone? More than happy.

01:48:25.400 --> 01:48:26.980
Yes, others? Any questions team?

01:48:27.340 --> 01:48:30.100
So are we doing good? Are you understanding the concepts?

01:48:30.500 --> 01:48:36.460
Are you comfortable now with using the commands and not getting the hang of how do you run the commands?

01:48:37.020 --> 01:48:37.960
Are we good? Okay.

01:48:38.960 --> 01:48:44.020
Alright, so we'll be back by your time 1.30.

01:48:44.100 --> 01:48:45.840
Break till 1.30 p.m.

01:48:46.160 --> 01:48:47.960
You can also come early and practice also.

01:48:49.300 --> 01:48:50.320
Your wish, yeah?

01:48:50.600 --> 01:48:51.880
Break till 1.30 p.m.

01:48:52.040 --> 01:48:53.900
Remember me to start the recording.

01:48:54.260 --> 01:48:55.840
Sometimes forget to start the recording.

01:48:56.000 --> 01:48:59.380
Once you come back, in case you forget it, please remind me.

01:48:59.500 --> 01:49:01.560
I'm right now pausing the recording.

01:49:02.240 --> 01:49:02.960
Thank you.

01:49:03.940 --> 01:49:04.540
Thank you.

01:49:26.640 --> 01:49:26.700
Thank you.

01:49:56.600 --> 01:49:56.660
Thank you.

01:50:35.940 --> 01:50:37.700
Thank you.

01:50:56.640 --> 01:50:56.700
Thank you.

01:51:26.640 --> 01:51:26.700
Thank you.

01:51:56.620 --> 01:51:56.680
Thank you.

01:52:26.620 --> 01:52:26.680
Thank you.

01:52:56.620 --> 01:52:56.680
Thank you.

01:53:26.620 --> 01:53:26.680
Thank you.

01:53:56.600 --> 01:53:56.660
Thank you.

01:54:26.640 --> 01:54:26.700
Thank you.

01:55:06.660 --> 01:55:07.680
Thank you.

01:55:35.960 --> 01:55:37.800
Thank you.

01:55:42.000 --> 01:55:43.540
Thank you.

01:55:43.540 --> 01:55:44.220
Thank you.