Kubernetes Volumes

While studying Kubernetes, I found the section on Volumes a bit confusing. As it is crucial, I delved into it and simplified it as much as possible. I want to share the following concepts and hope it will be helpful for others learning about Kubernetes…


This content originally appeared on DEV Community and was authored by Hamza Nasir

While studying Kubernetes, I found the section on Volumes a bit confusing. As it is crucial, I delved into it and simplified it as much as possible. I want to share the following concepts and hope it will be helpful for others learning about Kubernetes as well.

๐—ช๐—ต๐—ฎ๐˜ ๐—ถ๐˜€ ๐—ฉ๐—ผ๐—น๐˜‚๐—บ๐—ฒ ๐—ถ๐—ป ๐—ž๐˜‚๐—ฏ๐—ฒ๐—ฟ๐—ป๐—ฒ๐˜๐—ฒ๐˜€?
At its core, a volume is a directory, possibly with some data in it, which is accessible to the containers in a pod. Multiple types of volumes can be used. i.e. (AWS-EBS, Azure Disk).

๐—ช๐—ต๐—ฎ๐˜ ๐—ถ๐˜€ ๐—ฆ๐˜๐—ผ๐—ฟ๐—ด๐—ฎ๐—–๐—Ÿ๐—ฎ๐˜€๐˜€?
StorageClass in Kubernetes is a blueprint that tells the system how to provide storage for your applications automatically. It simplifies the process by managing the type and creation of storage behind the scenes.

๐—ช๐—ต๐—ฎ๐˜ ๐—ถ๐˜€ ๐—ฃ๐—ฒ๐—ฟ๐˜€๐—ถ๐˜€๐˜๐—ฒ๐—ป๐˜ ๐—ฉ๐—ผ๐—น๐˜‚๐—บ๐—ฒ?
Persistent volume (PV) is a piece of storage in the cluster that has been provisioned by an administrator or dynamically provisioned using Storage Classes. It is a resource in the cluster just like a node is a cluster resource.

๐—ช๐—ต๐—ฎ๐˜ ๐—ถ๐˜€ ๐—ฎ ๐—ฃ๐—ฒ๐—ฟ๐˜€๐—ถ๐˜€๐˜๐—ฒ๐—ป๐˜ ๐—ฉ๐—ผ๐—น๐˜‚๐—บ๐—ฒ ๐—–๐—น๐—ฎ๐—ถ๐—บ?
A PersistentVolumeClaim (PVC) is a request for storage by a user. It is similar to a Pod. Pods consume node resources and PVCs consume PV resources. Pods can request specific levels of resources (CPU and Memory). Claims can request specific size and access modes (e.g., they can be mounted ReadWriteOnce, ReadOnlyMany, ReadWriteMany, or ReadWriteOncePod, see AccessModes)


This content originally appeared on DEV Community and was authored by Hamza Nasir


Print Share Comment Cite Upload Translate Updates
APA

Hamza Nasir | Sciencx (2024-08-28T14:50:14+00:00) Kubernetes Volumes. Retrieved from https://www.scien.cx/2024/08/28/kubernetes-volumes/

MLA
" » Kubernetes Volumes." Hamza Nasir | Sciencx - Wednesday August 28, 2024, https://www.scien.cx/2024/08/28/kubernetes-volumes/
HARVARD
Hamza Nasir | Sciencx Wednesday August 28, 2024 » Kubernetes Volumes., viewed ,<https://www.scien.cx/2024/08/28/kubernetes-volumes/>
VANCOUVER
Hamza Nasir | Sciencx - » Kubernetes Volumes. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/28/kubernetes-volumes/
CHICAGO
" » Kubernetes Volumes." Hamza Nasir | Sciencx - Accessed . https://www.scien.cx/2024/08/28/kubernetes-volumes/
IEEE
" » Kubernetes Volumes." Hamza Nasir | Sciencx [Online]. Available: https://www.scien.cx/2024/08/28/kubernetes-volumes/. [Accessed: ]
rf:citation
» Kubernetes Volumes | Hamza Nasir | Sciencx | https://www.scien.cx/2024/08/28/kubernetes-volumes/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.