Kubernetes 1 Flashcards

1
Q

What is Kubernetes?

A

A Container Orchestration System.
- Its open source.
- Purpose is to automate the deployment, scaling and operation of containers.
- It runs on data center servers.

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

What is an Orchestration Software/What does it do?

A

Sits on top of a data center hardware.
Provides:
- Deployment of applications on the data center.
- Scaling of applications resources in response to demand.
- Restarts applications that have crashed (Self-Healing).
- Zero-downtime updates and rollbacks.

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

What are Kubernetes Clusters?

A

Nodes (Machines), that run containerised applications.
- Machines can be physical or virtual.

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

What type of Nodes are there?

A

Two types:
Controle plane Nodes
Worker Nodes

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

What is the Control Plane Nodes responsible for?

A

Managing the cluster.

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

What are Worker Nodes responsible for?

A

Running the Containers

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

What are the components of the Controle Plane?

A

API Server - Front end of Kubernetes control plane
Cluster Store - key value store
Scheduler - schedules work to be done
Controllers - handles routine tasks in a cluster
Controller Manager - manages the controllers

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

What is the API Server in Kubernetes?

A

Acts as a front end for the kubernates control plane
Exposes RESTful API over HTTPS

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

What is the Cluster Store in Kubernetes?

A

Key-Value Store that holds the state of the cluster.
Holds information about Kubernetes objects such as;
- Pods
- Services
- Deployments
Designed to be distributed and replaced to ensure high availability and prevent data loss
Most common cluster store in Kubernetes is etcd

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

What are Controllers in Kubernetes?

A

Controllers performe task of watching the state of the clustor and making changes to the clustor.
Main Controllers:
- Deployment Controller
- StatefulSet Controller
- ReplicaSet Controller

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

What is the Controller Manager in kubernates?

A

Manages the controllers

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

What is the Schedulder of the Control plane?

A

Watches the API server for new tasks and selects a node for them to run on.
Decision is based on:
- Resource requirement of the task
- Resources available on each node
- any constraints specified
If there is no node that meets these requirements, Task will remain pending until there is one that meets the requirement.
Pending tasks can trigger automatic increase in the number of nodes in the cluster

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

What do Worker nodes do in a kubernates cluster?

A

Handels execution of containers.
Each Worker node has the components:
- Kubelet - runs on each worker node and manages lifecycle of containers
- One or more container runtimes - to run containers
- Apkube Proxy - provides networking

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

What are the components of a worker node?

A
  • Kubelet
  • At least one container runtimes
  • Apkube Proxy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are Kubelets? What does it do?

A

An agent that runs on each node in a cluster.
Handles the control plane’s instructions to run containers, performing:
- watches API server for new tasks
- Delegates these tasks to the container runtime
- Reports the status of tasks back to the API Server
If the Kubelet cant run a task it will report back to API

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