Containers101 Flashcards

1
Q

What is Kubernetes?

A

Kubernetes is an open source container orchestration tool developed by Google.

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

Describe what a “container” is.

A

Similar to a VM, a container has it’s own files stem, vCPU, memory, process space, dependencies, and more. Containers are decoupled from the underlying infrastructure, and portable across clouds and OS distributions.

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

What are the advantages of of containers over VMs?

A

Containers are inherently much lighter than a fully-featured OS, and are lightweight isolated processes that run on the operating system kernel.

VMs run on a single machine with the help of a hypervisor.

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

List some actions that can be performed using Kubernetes.

A
  • Sharing resources
  • Orchestrating containers across multiple hosts
  • Installing new hardware configurations
  • Running health checks and self-healing applications
  • Scaling containerized applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List the 12 Kubernetes components.

A
  1. kube-proxy
  2. kube-controller-manager
  3. kube-scheduler
  4. etcd
  5. kube-apiserver
  6. kubelet
  7. kubectl
  8. Node
  9. container runtime
  10. Persistent storage
  11. container-registry
  12. Pod
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of kube-proxy?

A

Runs on every node in the cluster and maintains the network traffic between the Kubernetes resources.

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

What is the purpose of kube-controller-manager?

A

Governs the state of the cluster.

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

What is the purpose of kube-scheduler?

A

Allocates Pods to nodes.

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

What is the purpose of etcd?

A

Stores cluster data.

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

What is the purpose of kube-apiserver?

A

Validates and configures data for the API objects.

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

What is the purpose of kubelet?

A

Runs on nodes and reads the container manifests. Ensures that the defined containers have started and are running.

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

What is the purpose of kubectl?

A

Allows you to define how you want to run workloads. Use the kubectl command to interact with the kube-apiserver.

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

What is the purpose of a node?

A

A node is a physical machine or a VM in a kubernetes cluster. The control plane manages every node and schedules pods across the nodes in the Kubernetes cluster.

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

What is the purpose of container runtime?

A

Container runtime runs containers on a host operating system. You must install a container runtime on each node so that Pods can run on the node.

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

What is the purpose of persistent storage?

A

Stores the data even after the device is shut down. Kubernetes uses persistent volumes to store the application data.

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

What is the purpose of a container-registry?

A

Stores and accesses the container images.

17
Q

What is the purpose of a pod?

A

The pod is the smallest logical unit in Kubernetes. A pod contains one or more containers to run in a worker node.

18
Q

What is the purpose of of a custom resource?

A

A custom resource is an extension of Kubernetes API. You can customize Kubernetes clusters by using custom resources.

19
Q

What is an operator?

A

Operators are software extensions which manage applications and their components with the help of custom resources.

20
Q

What is the purpose of an operator?

A

An operator acts as a control loop which continuously compares the desired state of resources with the actual state of resources and puts actions in place to bring reality in line with the desired state.

21
Q

List the three types of Kubernetes Resources.

A
  1. Service
  2. ReplicaSets
  3. Deployment
22
Q

What is the purpose of a Service?

A

Kubernetes uses services to expose a running application on a set of pods.

23
Q

What is the purpose of ReplicaSets?

A

Kubernetes uses the ReplicaSets to maintain the constant pod number.

24
Q

What is the purpose of a Deployment?

A

A resource object that maintains the life cycle of an application.

25
Q

What is the definition of a cluster?

A

A cluster is a single computational unit consisting of multiple nodes in a cloud environment. A Kubernetes cluster includes a control plane and worker nodes.

26
Q

What is the purpose of a control plane?

A

The control plane node controls and maintains the state of the cluster.

27
Q

What is the purpose of a worker node?

A

Worker nodes handle the applications workloads.

28
Q

What is the purpose of a namespace?

A

You can use a Kubernetes namespace to differentiate cluster resources in a cluster.