CKA FULL COURSE 060 - Getting Started with Persistent Volumes in Kubernetes (HostPath Example)

Опубликовано: 22 Май 2026
на канале: NeoKloud
39
0

#CKA2025 Exam quesions
#kubernetes
#Neokloud
support to neokloud
buymeacoffee.com/neokloudclm
🎥 Kubernetes Exam Prep Made Fun & Interactive! 🚀
his session walks through the practical flow of Persistent Storage in Kubernetes using a HostPath PersistentVolume. You’ll create a PV, bind it with a PVC, attach it to a Pod running Nginx, and verify real data persistence by editing the mounted HTML content directly inside the container. Every command is explained step by step, including how the volume is mounted, how the pod writes data, and how the cluster exposes it for testing. This gives a solid foundation for understanding how Kubernetes handles storage beyond container lifecycles.

Explanation of ALL Important Words/Terms
session

A learning segment or lesson where you perform hands-on Kubernetes tasks.

walks through

Means going step-by-step so a learner can follow without confusion.

practical flow

A real working sequence of actions, not theory.
Example: create → bind → mount → test.

Persistent Storage

Storage whose data survives even if a pod is deleted or restarted.
Unlike container filesystem which disappears.

Kubernetes

The container orchestration system managing pods, nodes, workloads, storage, networking.

HostPath

A Kubernetes volume type that uses a folder from the node's filesystem
Example: /mnt/data on the worker node.

PersistentVolume (PV)

A cluster-level storage resource.
Admin creates it. It remains until deleted manually.
Think of it like: “A fixed storage box waiting to be claimed.”

create

Writing YAML or using commands to make Kubernetes objects.

PV (PersistentVolume)

Short name for PersistentVolume.

bind

The act of matching a PVC to a PV so they are linked.
Binding happens when storageClassName, size, accessMode match.

PVC (PersistentVolumeClaim)

A user request for storage.
Think of it like: “I need a box of 300Mi.”
Kubernetes finds a PV that satisfies it.

attach

Connecting the PVC to a Pod so the pod can read/write the data.

Pod

The smallest Kubernetes deployable unit.
Contains one or more containers.

running

The container inside the pod is active and ready.

Nginx

A web server container used here to serve HTML from the mounted volume.

verify

Check whether something is working as expected.

data persistence

Data written to the mounted folder survives even if the pod restarts.
Because data is stored on PV, not inside the container.

editing

Changing the HTML file using a command like echo or vi.

mounted

Means the volume is connected to the container’s filesystem at a certain path.
Example: /usr/share/nginx/html

HTML content

The website files that Nginx serves.

directly inside the container

You use kubectl exec -it to enter the container shell and modify files inside.

every command explained

No command is just given; each part (kubectl, -f, apply, etc.) is explained.

step by step

Sequential explanation: nothing skipped.

volume

The storage location provided to the pod.

mounted (second usage)

Reiterates how Kubernetes links storage to a path inside the container.

pod writes data

The application writes to the mounted directory.

cluster exposes

The cluster makes the pod reachable using IP or Service or hostPort.

testing

You test using curl or browser to confirm HTML loads.

solid foundation

Strong base knowledge to build more advanced storage concepts.

understanding how Kubernetes handles storage

Shows how Kubernetes separates storage from compute and manages it independently.

beyond container lifecycles

Even if the container dies or is recreated, your data stays.
Welcome to a creative way of mastering Kubernetes! Forget boring textbooks and dive into real-world examples, memes, animations, short stories, and even fun songs to learn Kubernetes concepts while preparing for your exam.

🎯 What You’ll Learn:
✅ Master Kubernetes Deployments, Services, and Pods with hands-on examples
✅ Ace Exam Scenarios with step-by-step practice questions
✅ Troubleshoot like a pro using live debugging sessions
✅ Simplify StatefulSets, Persistent Volumes, and ConfigMaps
✅ Unlock hidden secrets of kubectl with practical tips
✅ Get comfortable with exam-style questions for certifications
✅ Learn rolling updates, etcd backups, and more!

Why Watch This?
Interactive learning through trending reels, fun challenges, and relatable memes
Creative tools like songs and short stories to break down complex topics
Hands-on practice with YAML files and live coding
📌 Kubernetes mastery doesn’t have to be stressful! Let’s make learning fun, memorable, and exam-ready.

👉 Subscribe now and become a Kubernetes ninja! 🐱‍💻