Introduction to Kubernetes Flashcards

1
Q

Kubernetes helps you manage applications that are made up of

A

hundreds or maybe thousands of containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Kubernetes helps you manage applications that are in different environments like

A

physical machines, virtual machines, cloud environments or even hybrid deployment environments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How the need for an orchestration tool evolved:

A

★ Trend from Monolith to microservices
★ Increased usage of containers
★ Managing those hundreds or thousands of containers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Features of container orchestration tools

A
  • High availability
  • Scalability
  • Disaster Recovery
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The cluster must have at least one :

A

​Master Node.​

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Connected to the Master Node you have a couple of

A

Worker Nodes, where each Node has a Kubelet process running on it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A Kubelet is a Kubernetes process that makes it possible for

A

all cluster nodes to communicate with each other and execute tasks on Worker Nodes, like starting a web application container or database containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The ​Master Node runs several Kubernetes processes that are absolutely necessary to manage the cluster properly. These processes are:

A

● API server
● Controller Manager
● Scheduler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

API server, which also is a container. An API server is the

A

entry point to the Kubernetes cluster It is the process, which the different Kubernetes clients will talk to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Kubernetes clients are:

A

● UI - when using Kubernetes dashboard
● API - when using scripts and automating technologies or
● CLI - Kubernetes command-line tool (kubectl)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Controller Manager keeps an overview of

A

what is happening in the cluster. Whether something needs to be repaired or maybe if a container died and it needs to be restarted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Scheduler is responsible for scheduling containers on

A

different Nodes based on the workload and the available server resources on each Node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

etcd is a key value storage which holds at any time

A

the current state of the Kubernetes cluster

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

etcd stores all the ________ data and all the ____ data of each Node and each container inside of that Node.

A

configuration data ; status data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Using that etcd snapshot you can

A

recover the whole cluster state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

etcd snapshots allows Kubernetes to heal itself using

A

the backup and restore made of the current state of all components in your cluster.

17
Q

the control plane is responsible for making decisions about the cluster and

A

pushing it toward the desired state.

18
Q

Virtual Network enables the communication between

A

Worker Nodes and Master Nodes.

19
Q

The Virtual network ​spans

A

all the Nodes that are part of the cluster​.

20
Q

a virtual network turns all the Nodes inside of the cluster into one

A

powerful machine that has the sum of all the resources of individual Nodes.

21
Q

If for example you lose a Master Node access you will not be able to access

A

the cluster anymore
Have a backup of your master at all time is non-negotiable

22
Q

Think of a Pod as a ________ over a container.

A

wrapper

23
Q

On each Worker Node you can have multiple

A

Pods and inside of a Pod you can again have multiple containers. Even though its best practice to only have one application per Pod. Unless a dependency is required.

24
Q

Pod is a component of Kubernetes that manages the containers running inside itself without our intervention. If a container

A

stops or dies inside of a Pod it will automatically be restarted inside the Pod.

25
Q

Pods get assigned dynamic IP address by ddefualt but you wanted a persistent address

A

You would have to associate Services to that Pod to provide a persistent static IP address.

26
Q

each application Pod gets its own Service sitting in
front of it, to handle

A

the communication with other
pods.

27
Q

If a Pod behind the Service dies and gets recreated
the Service stays in place, because

A

its lifecycle is not tied to the lifecycle of the pod.

28
Q

The Service has two main functionalities.

A

Providing a static IP address.
Load balancer functionality.

29
Q

if you have 3 Pods of the same
application, you can use the

A

same service to handle communication with all 3 pods

30
Q

How do we actually create those components, like Pods and Services in Kubernetes cluster?

A

Kubernetes clients, like Kubernetes dashboard, Kubernetes API or a command line tool kubectl, all talk to the API server. Using these clients you can send configuration requests to the

31
Q

Deployment is essentially a Yaml file that acts as a

A

blueprint for creating Pods and that blueprint is defined in the template attribute under the specifications section

32
Q

Configuration requests in Kubernetes are written in ____ ____

A

declarative form

33
Q

A declarative syntax form means we

A

declare what our desired outcome is and Kubernetes tries to meet those requirements.