How to use Persistent Volume and Persistent Claims | Kubernetes - Part 9
HTML-код
- Опубликовано: 12 сен 2024
- Here is the link for the guide - jhooq.com/how-...
For setting up the Kubernetes Cluster using kubespray follow - • kubespray Kubernetes C...
In this lab session on Kubernetes Persistent Volume(PV) and Persistent Volume Claim (PVC) we will be going through -
1. Concepts behind Kubernetes Persistent Volume(PV) and Persistent Volume Claim (PVC)
2. How to create a Persistent Volume(PV)?
3. Persistent Volume Claim (PVC)?
4. How to create POD and use Persistent Volume(PV) and Persistent Volume Claim(PVC)?
For more similar content follow up on - jhooq.com
Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.
Video is copyrighted and it can not be re-distributed on any platform.
Thanks a lot, I was looking for the better videos on PV and PVC.. You Made my day..
You are incredible!!)) Very intersting and pretty informative explanation. Thank you for the video!)
Thank you! 😃
Thank you for your clear explanation.
you deserved for more subscribers
keep of up good work that will help us.
Thanks a lot!
Your explanation is super and easy to understand for normal person also ... Keep it up
Thanks a lot 😊
Very informative. and from my point of view, straight and to the point!
Thank you very much sir for sharing in very easy words, wondering if you offer one on one class ??
i really want to enroll in your kubernetes course,
Good tutorial and explanation.
Please have a tutorial of processing of PV & PVC in Multiple Node.
Thanks for stopping by
Good luck with your channel ! Good insight
I appreciate it!
Thanks Rahul !! for your wonderful tutorial on persistent volume in Kubernetes. I was puzzled why in the pod Yaml. you referred to it as "Kind: pod" not "kind: Deployment". Thanks.Mat.
Hope your query got answered. let me know if you still have any question
//Rahul
9:25
I think the mount path in the deployment file is wrong. it should be the container path that need to be mounted to the volume not the volume it self. correct me if I am wrong.
Great explanation with example.
Glad you liked it
Good explanation
As PV is K8s cluster resource I assume PV and PVC are the only way to attach volume to POD. then container/s inside POD can mount the same volume to container.
Query 1: If I have two replicas for my App POD, one Replicata set on NODE1 and another Replica Set on NODE2 .Does both Replica use the same PV and PVC to attach volume to both PODs ?
Query 2 : If I want to mount external storage like NAS directly to container inside POD , can I do this and if yes what would happen if POD dies and recreated ? how I can automate NAS volume mount to Container in case POD rebooted or dies ?
Very nicely explained 👌🏼
Very nice and explained well
Thanks for the explanation!!
I wanna Know something, It's possible to bound the same PV to two different PVC that are in diferent namespaces?
Thanks Rahul, it looks great esp the working demo. Keep it up.
I have question though - spring boot application hosted and able to run it, but would you be able to share an io operation to it?
Hi @Anad Durgam thanks for your comment.
Can you elaborate more on IO operation? I want to understand what you are trying to achieve, so that i can answer your question in better way
//Rahul
Thanks Rahul for your response. Question was how to create a folder or a file to the configured path using PV/PVC.
@RahulWagh
And all data generating by that running pod will be available on "home/vagrant/storage" location on our local system and we can access that data,
am i right?
Yes that’s right
Very great explanation!! Thank you
Glad you enjoyed it! stay tuned for more
Thanks Sir for the video! how about existing POD can we bind or integrate the PC and PVC? I'm trying this on AWX via minikuibe?
Yes you can bound it you need to edit the POD yaml configuraiton and mention the PV and PVC
Excellent Rahul ......
Very good!!
Thanks for demo.
Our pleasure!
Thanks for the video. I am getting following error after deploying the pod = error: the server doesn't have a resource type "jhooq-pod-with-pvc"
Any thoughts how to fix this issue? I am using minikube. Thanks.
Excellent !!!
Thank you! Cheers!
Good explanation Thank you.......
You are welcome
This video is Wonderfull.
Glad you liked it
hi Rahul, i dont see any data written into the path you have created as pv. How can the data will be written into that directory /home/vagrant ??
Awesome 😎👍
Please provide the Github links for above code
Thanks for the video, very informative.
Can you display the contents of the directory in your spring boot application?
There is a GitHub repo for spring boot application where you can see the code
Good one.
Thanks for the visit
Good stuff
Thanks for the visit
Where to check data
please do a demo video on how to pv using aws block storage, nfs and dynamic storage
Thanks for the suggestion hopefully I will prepare around PV and PVC in AWS environment
@@RahulWagh wt is the difference between kubectl create and kubectl apply and wer does we apply this.. Please let me know through a use case
How do I access a microservice in kubernetes in virtual machines of google cloud from my computer?
I expose it, but apache doesn't load on the website
Hi Omar I would be glad to answer your question but it would really nice if you could add more details to your question -
1. How you are trying to expose your service - NodePort, ClusterIp or LoadBalancer?
2. But i think you could refer to this clip where i exposed the service from google cloud on external ip - ruclips.net/video/ejwiMFJETdQ/видео.html
Let me know if you still face any issue, I would be glad to help
//Jhooq
@@RahulWagh I have realized, I was trying to use LoadBalancer, but I had to use NodePort, thanks your videos have been very helpful
Omar Omar great I was able to help you 👍
Thanks Rahul for this video , Can you Please make video on prometheus grafana dashboard migrate to nfs storage ?
Hey sanjay its on my list, surely you will see and video on prometheus and grafana
What is configmap in manifest file?
Can you please take a session for storage class
Surely I will add one on storage class
Thanks bro
Any time
Well explained but I have a doubt how each micro service will communicate with each other
Bro using services of k8s
Can you show how to resize the PVC after claiming?
I will see if i can prepare some around PVC resizing
Thanks a lot. That will be a great help
Excellent job explaining.
Glad you liked it