onprema

Kubernetes Storage

Dynamic volume provisioning allows storage volumes to be created on-demand. Without dynamic provisioning, cluster administrators have to manually make calls to their cloud or storage provider to create new storage volumes, and then create PersistentVolume objects to represent them in Kubernetes. The dynamic provisioning feature eliminates the need for cluster administrators to pre-provision storage. Instead, it automatically provisions storage when users create PersistentVolumeClaim objects.

To enable this:

EKS-specific stuff:

The Mountpoint for Amazon S3 Container Storage Interface (CSI) Driver enables Kubernetes applications to access Amazon S3 objects through a standard file system interface. Built on Mountpoint for Amazon S3, the Mountpoint CSI driver exposes an Amazon S3 bucket as a storage volume that containers in your Kubernetes cluster can seamlessly access.

There's a pattern...

  1. Notice a need for persistency of data/files
  2. Switch from an ephemeral volume (e.g., emptyDir) to a PersistentVolume + PersistentVolumeClaim
  3. Install the necessary drivers (ebs, efs, s3 mountpoint, etc)
  4. Configure your Deployments, StatefulSets, etc. by mounting the PVC
  5. profit. you now have persistent volumes that are dynamically provisioned.

#eks #kubernetes #storage