Dem
y
s
tifying
the Nuts & Bolts of
K
ubernet
es
Ar
chit
ectur
e
P
ods101
2
P
od - Concepts
•
What is
P
od?
•
P
od Deploym
ent
•
Multi-Cont
ainer
•
P
od Netw
orking
•
Int
er-P
od & In
tr
a-P
od Netw
orking
•
P
od Lif
ecy
cle
•
P
od Manif
est File
•
A T
ypic
al Pod cr
eation W
orkflow
3
A
t
omic Unit
of
Scheduling
Virtualiz
ation
Dock
er
K
ubernetes
VM
Cont
ainer
P
od
4
Ho
w P
ods ar
e deploy
ed?
Clust
er
Mast
er
Scheduler
API Server
P
od
Cont
ainer
5
Sc
aling the P
ods t
o
acc
ommoda
te
incr
easing tr
a
f
fic
W
ork
er Node
Mast
er
Scheduler
API Server
P
od
Cont
ainer
6
Wha
t if node r
esour
ces is ge
t
ting insuf
ficient?
W
ork
er Node
Mast
er
Scheduler
API Server
P
od
Cont
ainer
7
Wha
t if node r
esour
ces is ge
t
ting insuf
ficient?
Clust
er
Mast
er
Scheduler
API Server
P
od
Cont
ainer
W
ork
er-2
W
ork
er-1
8
Wha
t if node r
esour
ces is ge
t
ting insuf
ficient?
Clust
er
Mast
er
Scheduler
API Server
P
od
Cont
ainer
W
ork
er-2
W
ork
er-1
9
2 Con
t
ainer
s in a same
P
od
Clust
er
Mast
er
Scheduler
API Server
P
od
Cont
ainer
W
ork
er-2
W
ork
er-1
10
P
od Ne
tworking
P
od 1
Main Cont
ainer
:8080
10.0.30.50
P
od 2
Supporting
Cont
ainer
:7777
10.0.30
.60
Supporting
Cont
ainer
:3000
How does these c
on
t
ainer
s inside
P
ods communic
at
e with Ext
ernal
W
orld?
12
Netw
ork Namespace
P
od 1
Main Cont
ainer
:8080
10.0.30.50
P
od 2
Supporting
Cont
ainer
:7777
10.0.30
.60
Supporting
Cont
ainer
:3000
10.0.30.50:80
80
10.0.30.50:30
00
How does one P
od t
alk t
o another
P
od?
W
elc
ome to In
ter-P
od Communic
ation..
14
P
od Ne
tworking
P
od 1
Main Cont
ainer
:8080
10.0.30.50
P
od 2
Supporting
Cont
ainer
:7777
10.0.30
.60
Supporting
Cont
ainer
:3000
P
od Netw
ork
How does In
tr
a-P
od
c
ommunic
a
tion t
ak
e place?
16
In
tr
a-P
od Communic
a
tion
P
od 1
Main Cont
ainer
Supporting
Cont
ai
ner
:8080
:3000
10.0.30
.50
:8080 :3000
Localhost
17
A Look a
t P
od Manif
es
t
18
Get a shell
to a running Con
t
ainer
V
erifying the Oper
atin
g
Sy
s
tem
19
Get a shell
to a running Con
t
ainer
V
erifying the inde
x pag
e
r
oo
t@
ng
in
x-p
od
:/#
echo
Hello
sh
ell
dem
o
> /u
sr/
sh
ar
e/
ng
in
x/h
tm
l/in
de
x.h
tm
l
St
ag
es of Lif
e Cy
cle of P
od
Lif
ecy
cle
of
a P
od
P
ending
Running
Succeeding
P
od
P
od
P
od
F
ailed
P
od
API Ser
ver
Manifes
t
A T
ypic
al P
od Cr
ea
tion W
orkFlo
w
Credits: Vi
ktor Farc
ic
Demo
•
Deploying
Y
our Fir
st Nginx P
od
•
Viewi
ng Y
our P
od
•
Where
is your P
od running on?
•
P
od Output in JSON
•
Ex
ecuting Comm
and
s ag
ainst P
od
•
T
erminating a P
od
•
Adding a 2nd
cont
ainer t
o a P
od
24
R
ef
er
ences
•
ht
tps://kubelabs.c
ollabnix.com
•
ht
tps://k
ub
et
ools.colla
bn
ix.c
om
25
Thank Y
ou