Kubernetes Volume

Kubernetes Volume

ยท

2 min read

After reading this post you will be understanding the purpose of the volume and the type of volumes in Kubernetes

If you have not yet checked the previous parts of this series, please go ahead and check this ๐Ÿ‘‰ Link

Kubernetes Volume

What is volume?

The term volume, as it relates to storage, can refer to a physical volume or logical volume. A physical volume is based on a hard disk or another type of storage device. The volume represents a named area of storage that enables users and applications to access the data on the underlying device. Each storage volume is configured with a specific file system, such as ext3,ext4,xfs, etc.

Why volumes are more important in Kubernetes

Volumes in Kubernetes facilitate data storage that is accessible to Pods. As on-disk files in containers are ephemeral, kubelet will restart the container when a container encounters an error, but all the data within it will be lost. It will also cause issues when sharing data between multiple containers within a Pod. Volumes help solve both the above issues.

Shyju-Kubernetes.png

When a Pod dies, crashes, or is removed from a Node, the data volume is deleted and lost. so to avoid this type of issue we can map the storage inside the container. in case the pod is crash or dies we can save the data

Types of Kubernetes Volume

  • Persistent Volumes
  • Ephemeral Volumes
  • EmptyDir Volumes
  • Kubernetes hostPath Volumes
  • Kubernetes Volumes ConfigMap

Kubernetes supports several types of volumes.

  • AWS elastic block store (EBS)
  • Azure Disk
  • Azure File
  • GCE Persistent disk
  • GlusterFs
  • Flexvolume
  • FC - Fiber channel storage
  • CSI - Container Storage interface
  • vsphere volume
  • Cephfs -Cephfs Volume
  • Portworx volume
  • NFS
  • ISCSI
  • Host Path
  • RBD

In the coming serious we can discuss and Practice more about each topic

Hope you have got an idea about Kubernetes Volume and types of volumes

Happy Learning ๐Ÿ“š

Thank you!

Did you find this article valuable?

Support Cloudnloud Tech Community by becoming a sponsor. Any amount is appreciated!

ย