Introduction Flashcards

1
Q

What is a container?

A

A standard unit of software that packages up code and its dependencies so the application can be run quickly and reliably from one environment to another

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

Explain the laptop/desktop analogy with containers

A

Desktop: not portable, requires a lot of external dependencies (keyboard, mouse, monitor)
Laptop: run it anywhere, everything is included

Containers are like laptops

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

What are three advantages of containers?

A
  1. Portability
  2. Consistency
  3. Low Overhead (use fewer resources)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a container runtime?

A

The software used to run containers on a machine

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

What is Kubernetes?

A

It’s an open-source system for automating deployment, scaling, and management, of containerized applications

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

T/F: K8S handles deploying your containers to multiple servers

A

True

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

T/F: K8S doesn’t allow you to manage multiple replicas of your application

A

False

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

T/F: K8S can scale up your apps by spinning up/spinning down replicas of your containers

A

True

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

What is a K8S Cluster?

A

It’s a collection of worker machines that run containers

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

What is a control plane in the context of a K8S cluster?

A

A collection of software/services that control the cluster, i.e.
- users interact with the cluster using the control plane
- the control plane monitors the state of the cluster

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

What is a node in the context of a K8S cluster?

A

A machine that runs containers within the cluster, i.e.
- the node is solely responsible for the containers within it
- it monitors the state of its containers and reports the status back to the control plane

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

What does a worker node require to manage its containers?

A

A container runtime, e.g. containerd

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

What does a worker node require to manage Kubernetes activity on its node?

A

A component called kubelet

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

What is kubeadm?

A

it’s a tool that streamlines the process of setting up our kubernetes cluster

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

T/F: The K8S API is the central point of communication between various kubernetes components

A

True

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

T/F: you interact with the control plane through the K8S API

A

True

17
Q

Explain what happens when a user requests the creation of a pod object

A
  1. User makes request to control plane/API (assuming cluster is on and running)
  2. Control plane stores object representing user’s pod, and then spins up container(s) on node(s) to run the pod
  3. Worker nodes provide status updates to control plane/API
  4. User uses API to get updates on their object