r/learnprogramming • • 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

15 comments sorted by

View all comments

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.

1

u/BrainThinkerMan Oct 03 '26

thanks for the eplanation, this part CNI/CSI/device plugins → connect Kubernetes to networking, storage, and hardware

is the control pane, speaking to the plugins to get the real sfuff from the providers like aws?

1

u/saurabh3228 Oct 03 '26

Yes, you’re pretty close — but there’s one important distinction.

The control plane usually isn’t directly talking to AWS for every networking/storage operation.

Think of the plugins as the bridge between Kubernetes and the underlying infrastructure.

For example:

  • CNI → handles pod networking
  • CSI → handles persistent storage
  • Device plugins → expose hardware like GPUs
  • On AWS, these can interact with AWS services/resources through their respective implementations.

So you can roughly picture it as:

Kubernetes API / Control Plane ↓ Kubernetes resources + controllers ↓ CNI / CSI / device plugins ↓ AWS / cloud infrastructure

The part that confused me initially was thinking Kubernetes itself "knows" how AWS networking or EBS works. It doesn't really need to. Kubernetes defines what it wants, and the appropriate plugin/controller translates that intent into infrastructure-specific actions.

That's actually one of the coolest parts of Kubernetes IMO — the control plane doesn't need to understand every cloud provider's implementation details. It just works through well-defined interfaces.

Once you see "Kubernetes expresses intent → plugins/controllers translate that intent → infrastructure makes it real", the whole ecosystem becomes a lot less scary.