Architecture Flashcards

1
Q

What is a node?

A

Physical or virtual machine on which kubernetes is installed. It is also the worker machine where containers will be launched by kubernetes. Nodes were also known as minions in the past

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

what is a cluster?

A

Set of nodes grouped together. For redundancy purpose and load sharing.

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

What is the master node?

A

Another node where kubernetes is running within the cluster. Master node manages the worker nodes in the cluster. It is responsible for the actual orchestration of the cluster.

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

List components that are installed when we install Kubernetes?

A
  1. API Server
  2. etcd
  3. Scheduler
  4. Controller
  5. Container runtime
  6. Kubelet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is API server in Kubernetes?

A

Acts as the front end for Kubernetes
Users, management devices, All Talk to the API server

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

What is etcd or etcd key store in Kubernetes?

A

Distributed reliable key value store used by Kubernetes to store all data used to manage the cluster.
For eg. if there are multiple nodes and multiple masters in a cluster, etcd stores all that information on all the nodes in the cluster in a distributed manner.
etcd is responsible for implementing locks within the cluster to ensure that there are no conflicts between the masters.

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

What is scheduler in Kubernetes?

A

Distributing work or containers across multiple nodes
Looks for newly created containers and assigns them to nodes.

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

What are controllers in Kubernetes?

A

Controllers are the brain behind orchestration. Notices and responds when containers or endpoints go down. They decide to bring up new containers in such scenarios.

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

What is Container runtime in kubernetes?

A

Underlying softwares that is used to run the containers. For eg. Docker

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

What is the kubelet component in Kubernetes

A

Kubelet is the agent that runs on each node in the cluster. Agents responsible for making sure the containers are running on the nodes as expected

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

What makes the master node/server a master? What classifies it as master?

A

It has the kube-apiserver. The worker node has the kubelet agent that communicates with the kube-apiserver

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

What is the function of the kubelet agent in the worker node?

A

To communicate with the kube-apiserver in the master node and interact with master to provide the health info of all worker nodes and carry out the actions suggested by master on the worker node

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

Where are all the information gathered from worker nodes stored?

A

Stored in the master node in a key-value store (etcd framework)

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

what is kubectl?

A

kube control tool is a cmd line utility tool used to deploy and manage applications on a Kubernetes cluster

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

kubectl run hello-minikube

A

Deploy an application on a cluster
Deploys a docker container by creating a pod. First creates a pod and deploys a docker container using the image of hello-minikube

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

kubectl get info

A

View infomation about hte cluster

17
Q

kubectl get nodes

A

Get list all the nodes part of the cluster