Amazon EFS CSI: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
# [[Amazon_EFS_CSI_Operations#Deploy_the_Driver|Deploy the Amazon EFS CSI driver]] to an Amazon EKS cluster.
# [[Amazon_EFS_CSI_Operations#Deploy_the_Driver|Deploy the Amazon EFS CSI driver]] to an Amazon EKS cluster.
# Provision the EFS file system statically. Only static volume provisioning is supported, which means that the EFS file system must be created outside the EKS cluster before being used.
# Provision the EFS file system statically. Only static volume provisioning is supported, which means that the EFS file system must be created outside the EKS cluster before being used.
# Configure and deploy the corresponding [[Kubernetes_Storage_Concepts#Storage_Class_.28SC.29|Storage Class]]
# Configure and deploy the corresponding [[Kubernetes_Storage_Concepts#Storage_Class_.28SC.29|Storage Class]]. Example [[Amazon_EFS_CSI_Operations#Deploy_the_EFS_Storage_Class|here]].
# Configure a Persistent Volume with the [[Amazon_Elastic_File_System_Concepts#File_System_ID|EFS file system ID]] and deploy it.
# Configure a Persistent Volume with the [[Amazon_Elastic_File_System_Concepts#File_System_ID|EFS file system ID]] and deploy it.
# Configure and deploy the corresponding Persistent Volume Claim.
# Configure and deploy the corresponding Persistent Volume Claim.

Revision as of 17:15, 20 August 2020

External

Internal

Overview

Amazon EFS CSI driver makes possible consuming an EFS file system from an EKS pod via a standard Persistent Volume Claim/Persistent Volume mechanism.

The overall process consists in the following steps:

  1. Deploy the Amazon EFS CSI driver to an Amazon EKS cluster.
  2. Provision the EFS file system statically. Only static volume provisioning is supported, which means that the EFS file system must be created outside the EKS cluster before being used.
  3. Configure and deploy the corresponding Storage Class. Example here.
  4. Configure a Persistent Volume with the EFS file system ID and deploy it.
  5. Configure and deploy the corresponding Persistent Volume Claim.

This flow is based on https://github.com/kubernetes-sigs/aws-efs-csi-driver/tree/master/examples/kubernetes/multiple_pods.


Explain how a pod gets the same file system share all the time.

EFS CSI Driver

Is deployed as a CSIDriver and a DaemonSet.

Persistent Volume Size

Because Amazon EFS is an elastic file system, it does not enforce any file system capacity limits. The actual storage capacity value in persistent volumes and persistent volume claims is not used when creating the file system. However, since storage capacity is a required field in Kubernetes, it must be specified as a valid value. This value does not limit the size of the Amazon EFS file system.

EFS CSI Driver and Access Points

Amazon EFS CSI Operations