Sponsored by

TechOps Examples

Hey — It's Govardhana MK 👋

Welcome to another technical edition.

Every Tuesday – You’ll receive a free edition with a byte-size use case, remote job opportunities, top news, tools, and articles.

Every Thursday and Saturday – You’ll receive a special edition with a deep dive use case, remote job opportunities, and articles.

👋 👋 A big thank you to today's sponsor THE SHIFT

The AI Newsletter That Answers Your Questions in 5 Minutes

AI can do a lot, but most AI newsletters leave you wondering what’s actually worth trying. 

That’s where The Shift comes in. They don’t just tell you “what’s new” in AI. 

Every edition answers one question: What can you do with AI today that saves you time, money, or effort?

You’ll see real-world examples, step-by-step mini-guides, and instantly usable prompts under 5 minutes a day.

Plus free access to 3,000+ AI tools and 1000+ mega prompts so you can apply what you learn right away.

No hype, no wasted time, and no “just in case” news. If it’s in The Shift, it’s because it can make your work better today.

And right now, 3 subscribers win a free 1-year Claude Pro subscription. One click to enter.

👀 Remote Jobs

📚 Resources

Looking to promote your company, product, service, or event to 50,000+ Cloud Native Professionals? Let's work together. Advertise With Us

🧠 DEEP DIVE USE CASE

What Problem Does Kubernetes Volume Solve?

A container's filesystem lives and dies with the container itself. Picture an application writing uploaded files to /data inside its container, or a machine learning job checkpointing progress to local disk mid-training. The container crashes from an out of memory error, and the kubelet restarts it moments later. The pod shows Running again, the application comes back up, but every file written to that local filesystem is gone. Kubernetes replaced the container with a fresh one, and a fresh container starts with a fresh, empty filesystem. This is not a bug. It is the deliberate design of containers, and it becomes a serious operational problem the moment an application needs to remember anything across a restart.

A volume solves this by attaching storage to a pod that exists independently of any single container's lifecycle inside it.

A container running inside a pod on a node writes its state to a volume sitting outside the container's own filesystem. Because the volume is attached at the pod level rather than the container level, the data written to it survives a container restart even though the container's local filesystem does not.

Defining a Volume

The simplest form of this is an emptyDir volume, which Kubernetes creates fresh when the pod starts and mounts into whichever containers reference it.

This pod spec declares a volume named logs-volume using the emptyDir type under spec.volumes, then mounts it into the container at /var/logs using volumeMounts. Any process inside techops-container writing to /var/logs is now writing to storage that survives a container restart within the same pod, since emptyDir only gets wiped when the pod itself is deleted, not when an individual container inside it restarts.

This is useful for a scratch space multiple containers in the same pod need to share, such as a sidecar reading log files written by the main application container. What it does not solve is data surviving the pod being deleted entirely, which happens constantly during deployments, node drains, and horizontal scaling events. For a database or any stateful workload, the data needs to outlive the pod, not just the container.

Persistent Volumes and Claims

Kubernetes lets two objects working together. A PersistentVolume, or PV, represents an actual piece of storage provisioned in the cluster. A PersistentVolumeClaim, or PVC, is a request from a developer (mostly) for storage matching certain criteria, without needing to know which specific PV backs it.

🔴 Get my DevOps & Kubernetes ebooks! (free for Premium Club and Personal Tier newsletter subscribers)

logo

Upgrade to Paid to read the rest.

Become a paying subscriber to get access to this post and other subscriber-only content.

Upgrade

Paid subscriptions get you:

  • Access to archive of 250+ use cases
  • Deep Dive use case editions (Thursdays and Saturdays)
  • Access to Private Discord Community
  • Invitations to monthly Zoom calls for use case discussions and industry leaders meetups
  • Quarterly 1:1 'Ask Me Anything' power session