Kubernetes Components explained Flashcards

1
Q

A Node is a simple server it can be a

A

physical or a virtual machine that has the resources to run containers and pods

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

Pod is an abstraction over a container it creates

A

a running environment or a
layer on top of the container, e.g. Docker container. 🐳

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

Why does Kubernetes abstract away the container runtime or container
technologies?

A

So you don’t have to work directly with Docker or whatever container technology you use in Kubernetes. can easily replace them if you want to without making
changes to the existing Kubernetes configuration.

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

How does the virtual network inside of Kubernetes facilitate communication inside the cluster?

A

Each Pod gets its own IP address. They communicate using that IP address, which is a cluster internal IP address.

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

Why are Pods considered to be ephemeral?

A

They die very easily ☠ This can happen when the server runs out of resources, the
application crashes or the server gets restarted.

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

Why are Pods considered to be ephemeral?

A

They die very easily ☠ This can happen when the server runs out of resources, the
application crashes or the server gets restarted.

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

To make your application accessible through a browser you need to create an

A

External Service
Which is a Service that makes the application accessible from external clients, like a browser.

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

Ingress is the entry

A

point to your Kubernetes cluster. So, instead of a Service,
the request goes first to Ingress, which forwards it to the Service.

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

ConfigMap is an

A

external configuration for your application.

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

ConfigMap usually contains configuration data like

A

URLs of databases or some other Services that your application uses.

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

You create a ConfigMap _________________ of the pod and then pass it to the pod on
startup

A

independently

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

What is the process of changing the name of a service endpoint with and without configMap?

A

Now, if you change the name of the service endpoint, you just adjust the
ConfigMap, restart the pod and that’s it. 😎 You don’t have to rebuild an image and
go through this whole cycle.

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

Secret’s is another Kubernetes component just like ConfigMap, but the difference is
that it’s used to store

A

secret data, like credentials or certificates. It’s stored in base64 encoded format

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

Secret’s is another Kubernetes component just like ConfigMap, but the difference is
that it’s used to store

A

secret data, like credentials or certificates. It’s stored in base64 encoded format

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

You can use the data from ConfigMap or Secret inside your application Pod as

A

environmental variables or as a properties file.

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

The Secret component has built-in mechanisms like

A

encryption, defining authorization policies
Not enabled by default

15
Q

What happens to data when a pod dies?

A

Kubernetes doesn’t provide data persistence out of the box. So the data is lost

16
Q

The Volume component attaches a

A

physical storage on a hard drive to your Pod

17
Q

The Volume storage location could be (3)

A

on a local server on-premises
on the same server Node where the Pod is running
or it could be on a remote cloud server

18
Q

Kubernetes explicitly doesn’t manage any data persistence a Kubernetes user or an administrator is responsible for (3)

A

backing up the data
replicating the data
and managing it to ensure it’s kept on proper hardware

19
Q

If you need to update the docker image for “my-app” what is the most efficient way to get this done without manually updating each pod?

A

You update it in the deployment, and deployment will then automatically update and restart all running pods.

20
Q

A pod is a layer of _______________ on top of containers and _______________ is another
abstraction on top of _______,

A

abstraction
Deployment
Pods

21
Q

Services are used to communicate

A

between the Pods