K8s Architecture Flashcards

1
Q

what are the 3 processes to manage a pod?

A

container run time (like docker eg) (needs to be installed on every node)
kubelet (scheduler) communicates with container run time and the node (it takes configuration and runs a pod with container inside) (assigns resources like cpu, ram storage etc to the node)
kubeproxy allows you to forward requests from services to pods (this must be installed on every node) (this is also intelligent because it will forward requests from application to the database inside the same node to not gain more overhead)

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

What do master nodes do?

A

They decide whether to schedule a pod

They decide whether to restart a pod if a replica pod dies.

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

What 4 processes run on master node to control cluster state and worker nodes?

A

API server (used when you want to deploy application into a cluster interact with api server using a client like a ui or Kubernetes dashboard).

This is like a cluster gateway which gets updates or queries from cluster. also acts as gatekeeper for authentication.

Scheduler (schedule a request for a new pod, Api server will authenticate your request then hand it over to scheduler to start application on one of worker nodes). Kubelet will then execute the request.

Controller manager detects state changes (crashing of pods for example). This makes a request to the scheduler to recycle dead pods, calculates which nodes should have new pods. Then makes a request to kubelet to actually re-start those pods.

etcd is key value store of cluster state. Every change is updated in the key value store (when a pod dies or when pod gets scheduled)

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

What is minikube?

A

1 node cluster
master and worker processes run on one node
docker pre installed
runs using a hypervisor such as virtual box.

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

What is Kubectl?

A

way to create components on the node.

basically a cli

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

What is the layers of abstraction

A

deployment
replicaset
pod
container

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