

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: The Control Plane
incomplete
2: Labels
incomplete
3: Dry Run
incomplete
4: Kubectl Explain
incomplete
5: Rollouts
incomplete
6: Rollbacks
incomplete
7: API Deployment
incomplete
8: Thrashing Pods
incomplete
This lesson's interactive features are locked, please to keep using them
Okay, so kubectl lets you run commands against Kubernetes clusters. But it's just a client that communicates with a Kubernetes API server. Broadly speaking, there are two types of machines in a Kubernetes cluster:
Control Plane
Worker Nodes
The control plane manages the cluster itself. It's where the API server, scheduler, and controller manager live. Worker nodes are the machines that actually run your containers.
API server (kube-apiserver): The API that kubectl and every other component talk to.
etcd: A key-value database that stores the state of the cluster.
Scheduler (kube-scheduler): Picks a node for each new pod.
Controller manager (kube-controller-manager): Watches the cluster and makes changes to get it closer to the state you asked for.
kubelet: An agent that starts and stops the containers on its node.
kube-proxy: Sets up the networking rules that route traffic to pods.
A container runtime, like containerd: The thing that actually runs the containers.
Let's break down what actually happens within the cluster when you run:
kubectl scale deployment synergychat-web --replicas=20kubectl sends the request from your machine to the API server.
The API server saves "20 replicas" to etcd.
A controller notices that 1 pod exists but 20 are wanted, so it creates 19 more.
The scheduler assigns each new pod to a node.
The kubelet on that node starts the containers.
kubectl get pods -n kube-systemSubmit the shell checks.
This (mock) cluster has a single node that runs both the control plane and your apps. Production clusters usually keep the control plane on its own machine(s).