Components of Kubernetes Flashcards
What is a pod?
A pod is the basic unit inside Kubernetes cluster.
What is a pod responsible for?
Running containers. It also controls the execution of that container.
What makes a pod die
When all the containers in the pod die
Does a pod provide a way to set environment variables, mount storage, and feed other information into a container.
Yes.
What are the same resources all containers with a pod share
IP, storage, and RAM
What is a Node?
A collection of pods. It is a physical or virtual machine
How many types of nodes are there? Specify them
- Master node and worker node.
How many pods a worker node can hold?
1 or more pods
How many components are there in the worker node
3.
Kubelet process.
A Container Runtime Engine.
Kube-proxy.
Can you configure a master node to be a worker node?
Yes. But it’s not recommended for production purposes.
What does a Container Runtime do?
Run and manage a container’s life cycle
What is a Kubelet process?
A process that runs on all worker nodes in the cluster
What does a Kubelet process do?
- Takes instructions from the control plane to manage the state of the node.
- Collects performance and health information of the pods and their containers, and share that with the control plane to make scheduling decisions
- Connects to the run time engine using the Container Runtime Interface (CRI)
What is a Kube proxy?
An implementation of a network proxy that’s present on every node.
What is a Kube proxy responsible for?
- Routing traffic to the appropriate pod based on the incoming IP address
- Exposes the node externally
- Prevents IP conflicts on the pods
- Responsible for port mappings.
- Load balancer for the services running on the node.