Fireship · @fireship
Kubernetes Explained in 100 Seconds
Uploaded September 24, 2020 · Length 2:07
Summary
kubernetes explained as a tool for automating containerized workloads in the cloud with orchestration and scaling.
- kubernetes
- containerization
- cloud computing
- orchestration
- scaling
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
kubernetes a tool for managing and
- 0:02
automating containerized workloads in
- 0:03
the cloud
- 0:04
imagine you have an orchestra think of
- 0:05
each individual musician as a docker
- 0:07
container
- 0:08
to create beautiful music we need a
- 0:09
conductor to manage the musicians and
- 0:11
set the tempo
- 0:12
now imagine the conductor as kubernetes
- 0:14
and the orchestra as an app like
- 0:16
robinhood when the markets are closed an
- 0:18
app like robinhood
- 0:18
isn't doing much but when they open it
- 0:20
needs to fulfill millions of trades for
- 0:22
overpriced stocks like tesla and shopify
- 0:24
kubernetes is the tool that orchestrates
- 0:25
the infrastructure to handle the
- 0:27
changing workload it can scale
- 0:28
containers across multiple
- 0:30
machines and if one fails it knows how
- 0:31
to replace it with a new one a system
- 0:33
deployed on kubernetes is known as a
- 0:35
cluster
- 0:36
the brain of the operation is known as
- 0:37
the control plane it exposes an api
- 0:39
server that can handle both internal and
- 0:41
external requests to manage the cluster
- 0:43
it also contains its own key value
- 0:45
database called
- 0:45
etcd used to store important information
- 0:47
about running the cluster
- 0:49
what it's managing is one or more worker
- 0:50
machines called nodes
- 0:52
when you hear node think of a machine
- 0:54
each node is running something called a
- 0:55
cubelet
- 0:56
which is a tiny application that runs on
- 0:57
the machine to communicate back with the
- 0:59
main control plane mother ship
- 1:01
inside of each node we have multiple
- 1:02
pods which is the smallest deployable
- 1:04
unit in kubernetes
- 1:05
when you hear pod think of a pot of
- 1:07
whales or containers running together
- 1:09
as the workload increases kubernetes can
- 1:11
automatically scale horizontally by
- 1:13
adding more nodes to the cluster
- 1:14
in the process it takes care of
- 1:16
complicated things like networking
- 1:17
secret management persistent storage and
- 1:19
so on
- 1:20
it's designed for high availability and
- 1:22
one way it achieves that is by
- 1:23
maintaining a replica set which is just
- 1:25
a set of running pods or containers
- 1:27
ready to go
- 1:28
at any given time as a developer you
- 1:30
define objects in yaml that describe the
- 1:32
desired state of your cluster
- 1:33
for example we might have an nginx
- 1:35
deployment that has a replica set with
- 1:37
three pods
- 1:38
in the spec field we can define exactly
- 1:39
how it should behave like its containers
- 1:41
volumes ports and so on you can then
- 1:43
take this configuration and use it to
- 1:45
provision and scale containers
- 1:47
automatically and ensure that they're
- 1:48
always up and running and healthy
- 1:50
this has been kubernetes in 100 seconds
- 1:52
like and subscribe for more and you can
- 1:54
support my work by sponsoring me on
- 1:55
github or by becoming a pro member at
- 1:57
fireship io for even more content
- 1:59
thanks for watching and i will see you


