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. πΎ

TechOps Tutorials
252 views β’ Sep 1, 2025

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
π 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 TRENDSRelated trending topics. Click any trend to explore more videos.