Kubernetes Flashcards

1
Q

Why might it be a bad idea to have 4 masters in the control plane?

A

Due to the way in which decisions are made. When you have an odd number of controller it is easier for a set number of nodes in communication to elect a leader.

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

What parts make up a master?

A
  1. API Server - kube-apiserver
  2. Cluster Store - etcd Performance is critical
  3. Controller Manager - kube-controller-manager
  4. Scheduler-scheduler
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the important parts of a kubernetes node?

A
  1. Kubelet
    1. Main Kubernetes agent
    2. Registers node with Cluster
    3. Reports back to masters
  2. Container Runtime
    1. Used to always be Docker and mostly still is
    2. Usually containerd
    3. See gVisor and Katacontainers
  3. Kube-Proxy
    1. Networking Component
    2. Making sure every pod gets its own IP
    3. individual containers in a pod you get to via a port
    4. Basic loadbalancing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the manifest in Kubernetes?

A

A declaritive description of the desired state of the cluster.

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

TBD Something about reconcilliation loops

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

What is a Pod?

A

The Atomic unit of scheduling in Kubernetes.

A shared execution environment.

Containers will share various resources in there e.g. IP Addresses, Volumes, memory

Generally we only use one container per pod but there are specialist usecases where we do this. Common use case is a service mesh.

Contrast this with a VM for Virtualized infra or a container in docker. We cannot deploy a container alone in Kubernetes it nees to be in a Pod.

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

What percentage of the containers in a Pod must be up and running for a Pod to be Considered online?

A

100%, all of them

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

Can you split a pod across nodes?

A

No all parts of a Pod run on the same node.

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

When a Pod is recreated can you depend on the IP being the same?

A

Generally no as far as I know.

Kubernetes service object is the solution for this. It gives us a stable IP and name to the let us access the ephemeral and changing pods.

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

How does a service object decide which pods it should be loadbalancing traffic to?

A

At a high level its based on the labels the service and pods share.

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

What is etcd?

A

Consistent and highly-available key value store used as Kubernetes’ backing store for all cluster data.

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

What is kube-apiserver?

A

The API server is a component of the Kubernetes control plane that exposes the Kubernetes API. The API server is the front end for the Kubernetes control plane.

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

What is kube-scheduler?

A

Control plane component that watches for newly created Pods with no assigned node, and selects a node for them to run on.

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

What is kube-controller-manager?

A

Control plane component that runs controller processes.

Logically, each controller is a separate process, but to reduce complexity, they are all compiled into a single binary and run in a single process.

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

Describe the layers of a kubernetes deployment?

A

Deployment

Replica Set

Pod

App

This may need some work I think the instructor was simplifying things.

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

What is stored in ~/.kube/config?

A

The config file for kubectl.

This is basically a listing of clusters, users and contexts.

This contains connection information for the clusters and info about the users. These two come together in the context area to give us a contxt of a user + a cluster

17
Q
A