24. Kubernetes PVs & PVCs Demo in Minikube

Learn how to use Persistent Volumes and Claims in Kubernetes with a hands-on Minikube demo. Understand storage management in Kubernetes. πŸ’Ύ

24. Kubernetes PVs & PVCs Demo in Minikube
TechOps Tutorials
252 views β€’ Sep 1, 2025
24. Kubernetes PVs & PVCs Demo in Minikube

About this video

Learn how to use Kubernetes Persistent Volumes (PVs) and Persistent Volume Claims (PVCs) in this Minikube hands-on demo. Pods in Kubernetes are temporary, but with persistent storage you can keep your data safe even after restarts or deletions. In this tutorial, you’ll see how to create PVs and PVCs, mount them in Pods, test data persistence, and troubleshoot common issues like PVC stuck in Pending or Terminating, and PV stuck in Failed state. Perfect for developers, DevOps engineers, and system administrators who want to understand Kubernetes storage step by step.

πŸ‘‰ Watch the theory explanation of Persistent Volumes & PVCs here: [https://youtu.be/QTnRzaHiUYA]

βœ”οΈ Start Minikube & clean setup
βœ”οΈ Create Persistent Volume & PVC
βœ”οΈ Mount PVC in Pod & write data
βœ”οΈ Test persistence after Pod deletion
βœ”οΈ Reclaim policies: Retain vs Delete
βœ”οΈ Fix stuck PVCs & PVs like a pro

πŸ“Œ *Commands Used in This Video*
minikube start --driver=docker
kubectl delete all --all --all-namespaces
kubectl delete pvc --all --all-namespaces
kubectl delete pv --all
kubectl apply -f pv.yaml
kubectl apply -f pvc.yaml
kubectl delete pvc demo-pvc
kubectl exec -it demo-pod -- sh
kubectl patch pvc demo-pvc -p '{"metadata":{"finalizers":null}}'
kubectl patch pv demo-pv -p '{"spec":{"persistentVolumeReclaimPolicy":"Delete"}}'
kubectl edit pv demo-pv

πŸ“š Chapters
0:00 🎬 Intro to PV & PVC Demo
0:50 πŸ“‹ Demo Plan & Goals
1:21 πŸ› οΈ Minikube Setup & Cleanup
4:53 πŸ—„οΈ Creating a Persistent Volume (PV)
9:17 πŸ“ Creating a Persistent Volume Claim (PVC)
11:38 ⚠️ Troubleshooting a Stuck PVC
13:59 πŸš€ Creating and Mounting the Pod
16:45 πŸ”„ Testing Data Persistence Across Pod Deletion
19:32 πŸ—‘οΈ Deleting PVC & Reclaim Policy
23:14 πŸ’¬ Troubleshooting a Stuck PV
27:30 πŸ” Demo Recap & Summary
28:11 πŸ‘‹ Outro

πŸ”₯ Master Kubernetes storage in minutes and take your DevOps skills to the next level!

πŸ‘‰ Subscribe for more tutorials and leave your thoughts in the comments below.

πŸŽ“ *Continue Learning with These Playlists* :

🐧 *Linux for Beginners* (Start from scratch):
πŸ‘‰ [Watch the Playlist](https://www.youtube.com/playlist?list=PL4y5PiOmBnA84TiMlXFWflKYYhatkjQlV)

πŸ’» *Linux Command Line Tutorials* (Terminal-focused skills):
πŸ‘‰ [Explore Commands](https://www.youtube.com/playlist?list=PL4y5PiOmBnA83IhbSvF2t1yJVG4qVd-yO)

πŸš€ *Kubernetes Series for Admins and Devs* :
πŸ‘‰ [Start Learning Kubernetes](https://www.youtube.com/playlist?list=PL4y5PiOmBnA9KrxpnrBzgvSpdEqD6LmtI)

---
πŸ”” *Subscribe for more tutorials* :
πŸ‘‰ [@TechOpsTutorials](https://www.youtube.com/@TechOpsTutorials?sub_confirmation=1)

#Kubernetes #DevOps #PersistentVolume

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

252

Likes

11

Duration

28:42

Published

Sep 1, 2025

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.