Kubernetes Volumes explained | Persistent Volume, Persistent Volume Claim & Storage Class
Вставка
- Опубліковано 1 чер 2024
- Kubernetes Volumes | Kubernetes Persistent Volumes | Kubernetes Volume Claim | Kubernetes Volume Tutorial
► Subscribe To Me On UA-cam: bit.ly/2z5rvTV
Kubernetes doesn't provide data persistence out of the box, which means when a pod is re-created, the data is gone.
So, you need to create and configure the actual physical storage and manage it by yourself. Once configured, you can use that physical storage using Kubernetes storage components. In this video I show you 3 different Kubernetes volume components, that you need to use to connect the actual physical storage to your pod, so that the application inside the container can access it.
The 1st component "Persistent Volume" is a cluster resource, like CPU or RAM, which is created and provisioned by administrators. The 2nd component "Persistent Volume Claim" on the other hand is a user's or pod's request for a persistent volume. With the 3rd component "Storage Class" you can dynamically provision Persistent Volume component and so automate the storage provisioning process.
► Reference to YAML Configs: gitlab.com/nanuchi/kubernetes...
► Volume Types: kubernetes.io/docs/concepts/s...
► Checkout Kubernetes Volumes Demo: • Kubernetes ConfigMap a...
▬▬▬▬▬▬ T I M E S T A M P S
0:00 - Intro
0:20 - The need for persistent storage & storage requirements
2:05 - Persistent Volume (PV)
6:33 - Local vs Remote Volume Types
7:38 - Who creates the PV and when? (Kubernetes Administrator and Kubernetes User Role)
9:03 - Persistent Volume Claim (PVC)
10:33 - Levels of volume abstractions
12:17 - Why are these abstractions good?
13:40 - ConfigMap and Secret as volume types
15:52 - Multiple and different volume types in 1 pod
17:12 - Storage Class (SC)
-------------------------------------------------------------------------------------------------------
Full Kubernetes and Docker tutorial ► bit.ly/2YGeRp9
DevOps Tools, like Ansible ► bit.ly/2W9UEq6
Complete K8s Application Setup ► • Complete Application D...
Complete Jenkins Pipeline Tutorial ► • Complete Jenkins Pipel...
For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible. Also please let me know what you want to learn about Docker & Kubernetes or another technology.
#kubernetesvolumes #kubernetes #kubernetestutorial #devops #techworldwithnana
-------------------------------------------------------------------------------------------------------
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
Join private Facebook group ► bit.ly/32UVSZP
Don't forget to subscribe ► bit.ly/3mO4jxT
DEV ► bit.ly/3h2fqiO
INSTAGRAM ► bit.ly/2F3LXYJ
TWITTER ► bit.ly/3i54PUB
LINKEDIN ► bit.ly/3hWOLVT
▬▬▬▬▬▬ Courses & Bootcamp & Ebooks 🚀 ▬▬▬▬▬▬
► Become a DevOps Engineer - full educational program 👉🏼 bit.ly/45mXaer
► High-Quality and Hands-On Courses 👉🏼 bit.ly/3BNS8Kv
► Kubernetes 101 - compact and easy-to-read ebook bundle 👉🏼 bit.ly/3Ozl28x
Legal Notice:
Kubernetes and the Kubernetes logo are trademarks or registered trademarks of The Linux Foundation in the United States and/or other countries. The Linux Foundation and other parties may also have trademark rights in other terms used herein. This video is not accredited, certified, affiliated with, nor endorsed by Kubernetes or The Linux Foundation.
► Reference to YAML Configs: gitlab.com/nanuchi/kubernetes-tutorial-series-youtube/-/tree/master/kubernetes-volumes
▬▬▬▬▬▬ T I M E S T A M P S
0:20 - The need for persistent storage & storage requirements
2:05 - Persistent Volume (PV)
6:33 - Local vs Remote Volume Types
7:38 - Who creates the PV and when? (Kubernetes Administrator and Kubernetes User Role)
9:03 - Persistent Volume Claim (PVC)
10:33 - Levels of volume abstractions
12:17 - Why are these abstractions good?
13:40 - ConfigMap and Secret as volume types
15:52 - Multiple and different volume types in 1 pod
17:12 - Storage Class (SC)
Hey, First of all thanks for these great videos. I have a question for what you explained around 10:29 minutes wherein you mentioned the connection between a PVC config and the Pod config wherein the PVC is being referred to. I found one point missing here. How is the PVC config you showed is connected to the PV. Is it that when the storageClassName attribute is defined as "manual" the PVC is considered to be claiming it's backed storage from a PV ? Because later on in the video when you explain how a PVC is connected to a SC you clarified that the storageClassName is set to the name of the Storage Class. Appreciate if you could clarify this part or if I am missing something here. Thanks!
Alright, so I might be answering myself on the above question and also for those who might be having the same question when going through this video. As per the documentation (kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/) it does appear that the storageClassName needs to be defined even when a PVC wants a claim from a PV instead of a SC, and the value of the storageClassName needs to be "manual". Hopefully I understood it right now.
Also when at time 20:11 you mention that we add additional attribute named storageClassName in the PVC, it actually is not an additional attribute per what I wrote above but instead a name which is not the string "manual".
@TechWorld with Nana
Is that possible? To mount a PVC volume in a Linux VM, Because I need to share the same common storage volume for both VM and pod.
Whenever I have blind spot of Kubernetes, I search through this channel. And it never let me down.
I agree!!!
Done thanks
Types of volumes:
1. Persistent volumes
2. Persistent volume claim
3. Storage class
When a pod is restarted, storage is deleted. Data persistence needs to be configured for applications that need storage between pod restarts. But you don’t know which node your pod will be restarted on, so the storage must be accessible from all nodes. Storage also needs to survive entire k8s cluster crashes/restarts
Persistent volume is a kubernetes resource (like RAM), gets created using yml file
2:30
The actual storage of the volume is taken from either local storage, external nfs servers, cloud storage
4:30 defining which storage backend to use for a PersistentVolume
Local storage has a nodeAffinity attribute
PersistentVolumes dont belong to a namespace, accessible to whole cluster
7:15 local vs remote volume types, but local volumes are not really persistent. They are specific to one node, and do not survive a cluster crash
Persistent volume objects should be created before the pods that depend on them
9:30 A persistent volume claim is a k8s object used by applications to claim the persistent volume
10:20 persistent volume claim is then used in the pod specification under the volumes: attribute
While persistent volumes are available in all namespaces, persistent volume claim must be in the same namespace as the pod using it
11:30 volume is mounted into the pod and also into the container in the pod that wants to use it
13:45 configmap and secret volume types
17:15 storage class
thanks
Being a Dyslexic and a visual person, these video's are invaluable to me. It would take 10 times longer to learn this if I had to actually read the manual from start to end. Thank you so much for doing this, it mean more to me then you will know.
It's just amazing how you're able to explain everything that i need to know about this subject so well. Thank you so much, congrats for the great content
Pv, pvc and storage class never seen any where explained this much neat and clearly 10000 thanks to nana…keep taught us
This was one of the best 20 mins I have ever spent learning something. Very clear explanation with visuals. Thanks :)
This is the second time I get to warch one of your k8s subject explanations and I am very impressed. The structure of the explanation is very well made. It always seem to build all the necessary "conceptual blocks" in advance and then creates a big picture out of it. How often have I read or watched tutorials that were just missing one or two crucial bits of info to make things truly clear ? Your work nails all these details every time, amazing ! It may not be how every one likes things being explained to them, but it really does it for me. Congrats and keep up the great work !
I have only one thing to say... "God bless you!"
Your a great trainer , never explained this much deeper on PV , PVC , and storage class
love all the simple explanation! Your videos and courses are a bliss to watch !! Never stop creating them. We all need you Nana :)
Once again, youve taken a concept that I have been struggling with and entirely cleared it up. Not just that though, you've provided a visual representation that will stick around every time i approach this topic. If only kubernetes made such visual effort in their docs.
searching on this channel for devops content >> searching on entire yt. Thanks a lot for your efforts!!
Thank you, Nana!! Your videos have helped me a lot in learning k8s. I keep watching these videos over and over again and it gradually makes sense when using them on my job.
This video is so great. Your explanation is totally on the point.
The hard part is understanding the relationship among these components and having a general view of what they do, when to use and why we need them, your job is excellent in doing so.
Brilliant! Best Kubernets tutorials so far. Thanks :)
Thanks a ton Mouad, happy to hear! :) Please share and subscribe 🙏
Great job, Nana! Finally I could understand persistent volumes. Thank you.
Ohh Nana, you are fantabulous. Your videos are so segmented to hit the tiniest details. Great work!. All my IT goons must follow you ASAP!
one of the best videos ever. helped me to understand the concepts efficiently. Thank you for sharing!!
Always come here when I don't understand something and always come away with what I need
Fantastic channel :)
You describe complex things amazingly well, thankyou
Nana, you are the best teacher for devops and cloud engineer in youtube! Thanks so much!
LOVED IT !! what a wonderful explanation of PV, PVC and storage class !!
IMHO, Nana's explanations and her familiarity with the relationships between the parts in k8s are the best.
---
Disclosure: I worked at Google for five years and I have been hanging out in the k8s community since 2016.
You are the best, of them easy to understand and precise information that other tutors were not able to deliver!
This is Best K8s series I have seen . Thank you nana !! Please keep updating k8s object creation tutorial.
You are a savior!!!. Eagerly waiting for the practical demo sessions in Volumes
Excellent Nana, You just saved my day, I was struggling with PVC and storage class.
Freshly joined a team working on a project with k8s and found this channel greatly deciphers the mysterious YAMLs in the codebase!
A really detailed and clear way of explaining the concepts. Thank you for spreading the knowledge through your videos.
Thank you! Appreciate your positive feedback 😊
Nana, these lectures are pure gold, thanks again.
One of the best series of presentations on Kubernetes on the net. Great clarity and depth. Very much appreciated, thank you!
Insanely good straight-to-the-point explanation on how storage works on K8s; also the description containing the timestamps and all the other information is about 👌 Already subscribed, I’ll make sure to share this goodness :)
Thank you so much Martin for such great feedback! Appreciate your comment 😊
What a great video! Thanks! You're clear, concise and effective!
Loved the sleek diagrams and animations. Even better explanation to top it off. Thanks.
Thanks, happy to hear you liked it :D
This is really wonderful and usefull session for us. Because i have gone through more videos, I did not understand, , I an very clear PV,PVC ,Storage, ConfigMap and secrets.With in 20 mins i got entire conepts about Storage compoents in K8s.
Fantastic, the way you explain in such a simple way is really helping a lot to understand each topic completely. And sharing such a well created video free is really the best thing happened for k8s professionals like us.
Thank you so much Rahul for your positive feedback 😊
this video is one of my favorite, volume explained in a vgood way, Thanks a lot , I keep watching it every time I need to do something with volumes
Really happy to hear! Appreciate your words 😊
Rockstar Alert!!! You killed it! Thank you for making the content clear and concise!
No one explained it better than you.❤❤❤❤❤❤
Really well done. This has been a slippery concept for me for a while, but this was well-articulated.
Thanks Nana for such a beautiful explanation of Volumes in K8.
Perfectly understood in the first shot itself , Thank you Nana :)
Thank you!! Your videos are clear, accurate, concise, and just great. They have helped me learn K8S in a very short time.
and maybe you will like it? ua-cam.com/video/xdmijinrk-w/v-deo.html
- "Google, can you build a house for me?"
- "Sure, we will supply you with bricks, cement and the documentation. And you can build whatever your want."
You are really amazing! Thank you so much for the detailed explanations.
Great video! Data management is probably the biggest challenge in microservice driven architectures which are often implemented in k8s infrastructures. Volumes remaining "synched" with the orchestrator scheduler specially for DBs seems like a tabu for many instructors out there while in this video your just "grab the bull by its horns". Looking forward for those demos thank you.
Thank you so much 🙏Really appreciate it. You're absolutely right. Persistence with containers, is a challenging topic. I have discussed with some k8s engineers that have said they refuse to deploy any stateful application in k8s cluster. So what they do is create Deployments in k8s and host Databases outside the cluster the traditional way. I think there are advantages and disadvantages for both cases. I will try to cover these in the demo videos. Thanks again for your comment!
Very nice high-level overview of a somewhat complicated topic 🙏
good job. Actually - Amazing. Thank you. As a previous reviewer said: it helped me gain an intuitive sense of volumes!!!
Thank you 😊
Simple, fantastic, and up to the point. Thank you
Best explanation! Thanks from Brazil 🇧🇷 !!!
Very well presented! I was scratching my head on how to put my ELK cluster currently running on VMs into my newly built Kubernetes cluster. This video really is a good start. Vielen Dank :-)
Thank you 🙂
좋은 영상 감사합니다~!
개념이해에 항상 도움이 됩니다
Thank you for such a wonderful explanation. Short and sweet.
Thank you so much ..
Cleared my concepts on pv,pvc and storage class
Best video series on k8s ! Thanks for your time and energy Nana !
Thank you 🙂
Awesome explanation Nana, loved it! Can't wait to see the demo of this topic. Thanks a lot!
Thanks Nicolas 🙂 In my last video (ua-cam.com/video/JGtJj_nAA2s/v-deo.html) you can see small part of the volumes in practice, namely: dynamically creating volumes on a cloud storage using storageClass. Hope this will be interesting for you
Excellent video to understand K8S Volumes!! Thank you very much!...
Very helpful video, When it comes to persistence basic Kubernetes videos do not cover it. But somehow this video summarised all the required information perfectly.
And the YAML files you have provided are just great. Looking forward to more videos.
Thank you so much Amit for your feedback. Happy to hear 🤗
Clear explanation with amazing content. Thanks!
You are always the best in explanation the concept🥰☺️ Love you Nina🌹
Nana.. thank you for all the great work you are doing. You always inspire me to skill up. Thank you and a lot of love & respect from India.
Nana, You are fantastic and very simple thank you.
Well Done 👍🏽 ... You explained things in this video clearly ... I’ll be checking out more of your videos going forward
Great video! Thank you for putting this together!
There's a reason why this video has hundreds of likes and not a single thumbs down. Some clown will change that eventually, but let the record show that as of now it's 429 up, 0 down. Trolls won't be able to change that fact tomorrow. Kudos to you, Nana. This was awesome stuff and a timely tutorial for yours truly.
Such positive feedbacks like yours and the awesome thumbs ratio is really awesome and motivates to keep creating these videos for you, thank you Brian! 🙂
The best video on this very tricky part of K8s. Thank you !
I'm really glad to hear! 😊
You cleared all my doubts regarding pv and pvc. I was very confused.
Nana thanks for every single video's which you have posted, i went through them and in last 3 days my concepts regarding K8s and docker got improved. :)
Thank you so much! Really happy to hear my videos are so helpful! 😊
Your videos are really helpful
Thank you Nana. nicely explained and made it so simple
Greatly explained Nana. Appreciated...
I wonder who the 16 people are who gave a thumbs down. I really appreciate you spending so much time in creating this video!! If you do make a different video for the different volume mount types, please please add a link in the description, so that we can go ahead and watch that as well.
Amazing video, great explanation of the volumes
Clear explanation, great effort , thanks very much
Now I understand everything about Kubernetes. Great job, thanks!
SUBSCRIBED. LIKED. SHARED.
Thank you 😊
This was fantastic! Thanks!
It gives me details at very high level which is important to me in every aspect
Another excellent video. You have earned my sub for sure!
You teach very well, I appreciate you
Excellent explanation of the concepts. Thank you !
Wow.. This helped a lot! Thank you so much for making quality vids on k8s!!
Thanks a lot JongHun, glad you like the videos! 🙂
Very much impressed Nana with your explanation. I sincerely request you to make more and more videos on k8s covering all of its topics along with real time use cases by showing their practical implementation right from scratch.
Thanks Vempa! Glad you like it, will make many more videos on K8s but will take time to do so :)
Excellent explanation, one of the best explanations that I have come across about volumes on k8s
Thank you so much Vishal 😊
Very well explained... Thanks Nana
Very useful and I got a clear understanding. Excellent one. Thanks for providing such videos for us.
Excellent video. Thank you very much.
I would like to thank you for this amazing explanation.
Don't know why 3 downvoted. Awesome Vid :) Thank you!
Awesome, thank you Nana.
Terrific explanation. Thanks for all your work.
thank you nana for your wonderful explanation
Thanks Anna for sharing your knowledges. You're really rocking the tech world!
Thank you Issa 🙂
Wonderful video. Thank you for sharing your knowledge!
Awesome explanation!
Thanks for this great video. I finally understand kubernetes.
Excellent video, thanks Nana - you explain how and for me, most importantly why there are so many abstraction layers/object types for k8s storage.
Thank you so much for sharing this! I am diving into the wonderful world of containers and container orchestration right now and this is helping out tremendously.
Did you happen to produce the other videos for storage yet, specifically NFS? I looked through your list of videos and didn't see them.
Either way, thanks again and I plan to go through your 3 and 4-hour courses over the next few days.
Thnks you so much for making us to comprehend the kubernetes topics. iam new to this chanel,what a explanation got crsip idea about kubernetes storages
Amazing simplistic high-level
Very clear explanation. thank you.
Thank you , Very well explained.