►
From YouTube: Networking with Kubernetes
Description
In this lightboard talk, Nathan Ness walks through the networking options in Kubernetes and explains the types of communications through Kubernetes services.
For more information, please visit the VMware’s Cloud-Native Apps website:
https://cloud.vmware.com/cloud-native-apps
A
A
A
And
then
we'll
draw
some
kubernetes
constructs
up
here,
so
Cooper
naze
consists
of
clusters,
and
so
a
cluster
consists
of
a
master,
node
or
nodes.
This
master
node
provides
an
API.
It
provides
a
scheduler
and
there's
other
constructs
in
here,
but
I'm
not
going
to
draw
them
for
the
sake
of
time,
and
so
after
you
have
a
master,
the
cluster
itself
is
actually
built
up
of
what
are
called
worker
nodes.
So
we'll
name
this
one
node
one
and
we'll
name
this
one
node
two.
A
And
so
we'll
connect
these
nodes
via
to
the
infrastructure
network.
So
the
requirement
here
from
a
node
network
or
RI
as
network
is
all
nodes
within
the
cluster
have
connectivity.
This
connectivity
can
be
via
l2,
l3
or
and
overlay
just
so,
just
as
so
as
long
as
they
can
communicate
with
among
each
other.
Ok,
so
after
that,
we
go
down
to
what's
called
node
networking,
and
so
this
is
where
we
assign
a
sitter
block.
A
And
for
the
purposes
of
this
talk,
I'm
going
to
use
one
80216,
8
X,
dot
X,
so
the
first
two
octets
and
my
node
networks
are
going
to
be
one
92168,
and
so
you
can
really
think
of
each
of
the
worker
nodes
as
an
IP
router,
that's
assigned.
So
this
one
will
choose
10,
dot,
0,
/
24,
and
then
this
one
we're
going
to
choose.
20.0,
/,
24,
okay,.
A
A
A
A
A
I'll
have
10.0
/
24
going
to
52
and
then
I'll
have
20.0
/
24
going
to
53
and
that
will
be
installed
routes
inside
my
physical
router
and
across
my
physical
fabric
right.
So
this
is
going
to
be
over
l3
I
need
all
of
these
routes,
reflected
inside
my
physical
network,
okay,
and
so
that's
the
first
type
of
topology.
A
So
when
pods
communicate
across
this
they're
going
to
actually
use
your
physical
network
to
communicate
back
and
forth,
so
there's
no
complexities
of
port
mapping
and
NAT
for
pods
to
talk
to
other
pods
right,
and
so
the
second
type
of
topology
we
could
deploy
is
an
overlay
technology
to
have
pod,
2,
pod
communication.
And
so
what
I'm?
Talking
about
these
two
constructs
here,
I'm
talking
about
pod,
the
pod
communication
we'll
get
into
how
we
access
these
pods
externally
here
at
in
a
bit,
and
so
when
we
have
an
overlay
technology.
A
A
Okay.
So
now
we
can
have
pod
pod
communication.
We
don't
have
to
worry
about
static
routes
across
our
physical
network
or
when
we
stand
up
new
worker
nodes,
we
don't
have
to
make
sure
that
being
advertised
across
the
physical
network.
Again,
our
simple
requirement
now
is
node
2,
node
communication
and
not
necessarily
all
of
these
node
networks
across
our
physical
network.
So
now
let's
talk
about
communication
and
so
there's
two
types
of
communication
and
that's
done
through
a
kubernetes
service.
A
Also
have
ports
what
ports
I
want
to
expose,
so
I
can
do
80
and
443,
and
so
there's
other
constructs
within
the
service.
But
this
is
kind
of
the
basic
idea.
Is
this
kubernetes
service
is
going
to
allow
pod
pod
communication.
So
now,
when
we're
talking
to
pods,
it's
actually
going
to
pod
one's
going
to
talk
to
a
cluster
IP,
and
so
now
we
get
native
load
balancing
within
kubernetes,
east-west
because
when
I
talk
to
the
cluster
IP,
the
cluster
IP
is
going
to
give
it
to
one
of
these
endpoints.
A
A
We
have
our
list
of
endpoints
here,
which
is
going
to
be
pod,
one
pod,
two
so
on
and
so
forth,
and
then
I
have
ports
that
are
going
to
be
exposed
for
that
particular
pod
and
I
can
map
these
to
any
port
that
I
want
or
an
arbitrary
port
here.
Maybe
this
is
going
to
be
one
thousand
twenty
two,
and
so,
when
I
come
in
externally
to
any
of
these
52
or
53
via
ten
0.52
:
1022.
A
Another
option
there
would
be
load
balancer
where
I
can
actually
come
in
externally
and
access
my
kubernetes
service
and
then
for
networking
topology
options.
I
can
either
do
an
overlay
network
which
provides
some
simplicity
when
I'm
standing
up
or
scaling
out
clusters,
and
then
also
I
can
do
a
flat
routed
Network,
where
I'm
maintaining
the
routes
of
the
node
network
inside
of
my
physical
network
and
so
on
and
so
forth,
and
so
those
are
basically
the
kubernetes
networking
options
that
we
see
today.
Thank
you.