Kubernets Overview Flashcards

1
Q

Kubernetes Cluster Services

A

In charge of matching the observed state to the desired state.

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

Kubelet

A

A process attached to each worker node that manages it’s respective node and makes it possible for the cluster and nodes to communicate with each other. They ‘listen’ for instructions from the kube API server and deploys or destroys containers on the nodes as required. If nodes are cargo ships then the kubelet is the captain.

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

Worker nodes

A

Responsible for holding pods and containers. In the worker nodes is where applications run.

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

Master Node

A

Holds an API Server, Controller Manager, Scheduler, and etcd.

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

Kube API Server

A

Located within the master node. It is the entry point to the kubernetes cluster. Responsible for orchestrating all operations within the cluster. It is the communications point between kubernetes clients (ie. ai, api, or cli) “talk” and the cluster.

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

Controller Manger

A

Located in the master node. Keeps an overview of what’s happening in the cluster, for example if something needs to be repaired or if a container died and needs to be restarted. Monitors the node controller and replication controller.

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

Scheduler

A

Located in the master node. Responsible for deciding which worker node the next container should be scheduled based on workload and the available server resources on each worker node.

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

etcd

A

A key value storage located in the master node. Persistence for the control plane.

Constantly keeps track of the current state of the kubernetes cluster. Contains all configuration data and status data of each worker node, as well as each container within each worker node. Creates ‘snapshots’ that can be used as backup and restore data in case a node or container malfunctions.

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

Virtual Network

A

Enables the master and worker nodes to talk to eachother. It spans all the nodes that are a part of the cluster and turns them all into one powerful machine that has the sum of all the resources of individual nodes.

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

Pod

A

It is an abstraction layer that wraps around a container, as well as the smallest unit in kubernetes that users will configure and interact with. Each pod has its own IP address, making pods their own self-containing servers. A pod usually contains one container and a container usually contains only one application. Separate apps, separate pods.

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

What does pods being ephemeral mean?

A

When a pod is down or dies, a brand new one is recreated with its configurations but with a new IP address.

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

Services

A

Each pod has a “service” in front of it which allows pods to communicate in case one is down or dies. This way, when a new pod is created with a new IP address, the pods can still communicate to each other. A pod’s service will have a permanent IP address and is a load balancer.

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

Kubernetes configuration

A

Specified in a YAML or JSON file and passed from the kubernetes client (ui, api, or cli) to the API server of the master node.

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

Deployment file

A

A template used for creating pods, typed in yaml format. It declares the desired state of the kubernets cluster.

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

What can you configure in a deployment file?

A

1) How many pod replicas should be made
2) What app will be inside a pod’s container
3) Env variables and port configuration of the containers

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

Node-controller

A

Maintained by the controller manager. Takes care of nodes. Responsible for onboarding new nodes to the cluster and handling situations when a node gets destroyed.

17
Q

Replication controller

A

Ensures that the desired number of containers are running at all time in a replication group.

18
Q

Container runtime engine

A

For example, docker. Is installed on all the nodes in the cluster, including the master nodes, so that every component can be container-compatible.

19
Q

Kube proxy service

A

Runs on the worker node. Ensures that the necessary rules are in place on the worker nodes to allow the containers running on them to reach eachother.

20
Q

Kube CTL

A

A command-line interface that can be used to communicate with the cluster. It is considered a kubernetes client.

21
Q

Control Plane

A

Multiple master nodes grouped together.

22
Q

Kubernetes

A

Container orchestration tool. Allows us to manage and deploy containerized applications.