Day 5 of LFS250 | Kubernetes Fundamentals - Pods, Deployments & Services

Day 5 of LFS250 and today we stopped talking about Kubernetes from the outside and started speaking its language - YAML, API objects, and the declarative mindset that changes how you think about infrastructure.

TIL: In Kubernetes, you don't issue commands - you describe intentions. And the cluster makes them real.

This is the shift that separates K8s from everything that came before it. You don't say "start this container on that server." You say "I want 3 replicas of this app running at all times" - and walk away. Kubernetes handles the rest. Forever.

Today's session introduced the core building blocks you'll work with every single day:

Pod - the smallest deployable unit

A Pod is not a container - it's a wrapper around one or more containers that share the same network namespace and storage. Think of it as one logical application instance.

Key insight: you rarely create Pods directly. They're almost always managed by a higher-level object. Creating a naked Pod means if it dies, it stays dead. That’s not what you want.

Deployment - the workhorse of K8s

This is what you'll write most often. A Deployment wraps your Pods and adds:

  • Desired state management - declare how many replicas you want; K8s maintains that count

  • Rolling updates - update your app version gradually with zero downtime

  • Rollback - one command to revert to a previous version if things go sideways

A simple but powerful pattern: change the image tag in your Deployment manifest, apply it, and Kubernetes handles the transition - no manual intervention needed.

Service - stable networking for unstable Pods

Pods are ephemeral. They get created, destroyed, and rescheduled constantly — and their IP addresses change every time. A Service sits in front of your Pods and gives them a stable, permanent address.

Three types I learned today:

  • ClusterIP - internal only, accessible within the cluster

  • NodePort - exposes the service on a port across all nodes

  • LoadBalancer - provisions an external load balancer via your cloud provider

Without Services, Pod-to-Pod communication would be a nightmare of constantly changing IPs. With them, microservices just call each other by name.

The thing that tied it all together today was understanding labels and selectors — the glue of the entire system. A Service doesn't hardcode which Pods it routes to. It selects them dynamically based on labels. Change a label, change the routing. Elegant and flexible.

Here's the simplest mental hierarchy to remember:

Deployment manages → ReplicaSet manages → Pods run → Containers serve traffic → Service exposes them

Day 5 complete. I can now read and write K8s manifests with genuine understanding - not just copy-paste.