Introduction to Kubernetes Flashcards
Kubernetes helps you manage applications that are made up of
hundreds or maybe thousands of containers.
Kubernetes helps you manage applications that are in different environments like
physical machines, virtual machines, cloud environments or even hybrid deployment environments.
How the need for an orchestration tool evolved:
★ Trend from Monolith to microservices
★ Increased usage of containers
★ Managing those hundreds or thousands of containers
Features of container orchestration tools
- High availability
- Scalability
- Disaster Recovery
The cluster must have at least one :
Master Node.
Connected to the Master Node you have a couple of
Worker Nodes, where each Node has a Kubelet process running on it.
A Kubelet is a Kubernetes process that makes it possible for
all cluster nodes to communicate with each other and execute tasks on Worker Nodes, like starting a web application container or database containers.
The Master Node runs several Kubernetes processes that are absolutely necessary to manage the cluster properly. These processes are:
● API server
● Controller Manager
● Scheduler
API server, which also is a container. An API server is the
entry point to the Kubernetes cluster It is the process, which the different Kubernetes clients will talk to.
Kubernetes clients are:
● UI - when using Kubernetes dashboard
● API - when using scripts and automating technologies or
● CLI - Kubernetes command-line tool (kubectl)
Controller Manager keeps an overview of
what is happening in the cluster. Whether something needs to be repaired or maybe if a container died and it needs to be restarted.
Scheduler is responsible for scheduling containers on
different Nodes based on the workload and the available server resources on each Node.
etcd is a key value storage which holds at any time
the current state of the Kubernetes cluster
etcd stores all the ________ data and all the ____ data of each Node and each container inside of that Node.
configuration data ; status data
Using that etcd snapshot you can
recover the whole cluster state.