Kubernetes Clusters Flashcards

1
Q

Explain the components of a Kubernetes cluster and their roles

A

🏗️ Worker machine (aka nodes) run containerized applications
📦 Pods are components of the application workload
👷‍♀️Control plane manages the worker nodes and the Pods

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

What is the significance of the “Control Plane” in a Kubernetes cluster?

A
  • makes global decisions about the cluster (like scheduling)
  • detects and responds to cluster events.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe the main components of the Control Plane and their respective responsibilities in ensuring the proper functioning of the cluster

A

📑 kube-apiserver: exposes the Kubernetes API
🗄️ etcd: key value store for cluster data (requires backup plan)
⏲️ kube-scheduler: watches for newly created Pods with no assigned node, and selects a node for them to run on
🪡 kube-controller-manager: runs controller processes
☁️ cloud-controller-manager: links your cluster into your cloud provider’s API and manages communication with cloud provider

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

Discuss the concept of “Node” in Kubernetes. What are worker nodes, and what role do they play in the cluster?

A
  • runs the application in a cluster
  • reports to a control plane.
  • process data stored in the cluster
  • handle networking traffic inside and outside of the cluster
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you scale the number of worker nodes dynamically to accommodate varying workloads?

A

Cluster autoscaler: horizontal scaling, helps manage the costs of running Kubernetes clusters on a cloud provider platform

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