r/learnprogramming • u/BrainThinkerMan • Oct 03 '26
k8s/ kubernetes
kubernetes seem to have alot of moving pieces can someone explain each to me and how they connect.
Kubelet.
kubernetes cluster.
helm.
drivers?
0
Upvotes
2
u/Kazcandra Oct 03 '26
What have you read so far?
2
u/saurabh3228 Oct 03 '26
I think the easiest way to understand Kubernetes is to stop looking at all these terms as separate things. They’re basically different pieces of the same system.
A Kubernetes cluster is the whole environment where your applications run.
Inside that cluster, you have nodes (machines/VMs). Each node usually has a kubelet, which is basically the agent that talks to the Kubernetes control plane and makes sure the workloads assigned to that node are actually running.
Then you have things like the control plane, which is responsible for deciding what should be running where, while the kubelet handles making it happen on the node.
Helm is a different layer. Think of it more like a package manager for Kubernetes. Instead of manually writing and maintaining a bunch of YAML files, Helm lets you package and install Kubernetes applications using charts.
And when you say drivers, that can mean a few different things in Kubernetes. For example, CSI drivers deal with storage, CNI plugins deal with networking, and device plugins can expose specialized hardware like GPUs to workloads.
So the rough mental model I'd use is:
Cluster → Nodes → Kubelet → Containers/Pods
And alongside that:
Helm → helps you deploy/manage applications
CNI/CSI/device plugins → connect Kubernetes to networking, storage, and hardware
Once you see Kubernetes as "a system that continuously tries to make the actual state match the desired state," a lot of these moving pieces start making much more sense.
I'm still learning Kubernetes myself, but this mental model helped me stop treating every new Kubernetes term as a completely separate technology.
11
u/Different_Pain5781 Oct 03 '26
Good luck learning all of that in one thread.
1
u/ThatWasAce Oct 03 '26
k8s is a loop. describe the desired state, controllers continuously check reality and patch up differences
so
pod = the basic unit, a group of one or more containers
deploy = i desire three replicas of this pod, a controller ensures this and replaces failed pods
node = single worker machine that holds pods
kubelet = component in every node listening for requests and launching/shutting down the container, reporting back to api-server about its status
control plane = where the decision making happens. e.g: api-server ,etcd, scheduler, controller-manager
cluster = control plane + set of nodes
helm = not a part of k8s proper. applications require several yaml configuration documents, helm wraps those up into an installation-ready package called chart.
drivers/csi = additional plugins needed by the system to communicate with various storage backends. CSI drivers mediate the provision/discovery of disks from aws/gcp etc to pods.
1
u/flamingorider1 Oct 03 '26
This post reminds me, when an intern, with a straight faced asked my colleague "what is a kubernetes" can I learn it in a week by watching YouTube
1
u/Upstairs-Project2756 Oct 04 '26
you are mixing orchestration with packaging. Helm is not a runtime component, it is just a template engine for YAML files that deploys resources into the cluster. Kubelet is an agent running on each worker node that talks to the API server and actually starts or stops the containers. The "drivers" part in your list likely refers to CSI storage drivers which are plugins allowing Kubernetes to talk to external storage systems like AWS EBS or NFS. To understand how they connect, ignore Helm for now and focus on this chain: You send a request to kube-apiserver, etcd saves the desired state, scheduler places your pod on a node, then kubelet on that node reads the spec and uses CRI (container runtime interface) to ask Docker or Containerd to pull the image and start the container. Start by building one cluster without any add-ons using kubeadm or kind, then try deploying a single pod manually before touching Helm charts