AWS EFS CSI Driver¶
This add-on deploys the AWS EFS CSI driver into an EKS cluster.
Usage¶
The AWS EFS CSI driver can be deployed by enabling the add-on via the following. Check out the full example to deploy an EKS Cluster with EFS backing the dynamic provisioning of persistent volumes.
You can optionally customize the Helm chart that deploys the driver via the following configuration.
enable_aws_efs_csi_driver = true
# Optional aws_efs_csi_driver_helm_config
aws_efs_csi_driver = {
repository = "https://kubernetes-sigs.github.io/aws-efs-csi-driver/"
chart_version = "2.4.1"
}
aws_efs_csi_driver {
role_policies = ["<ADDITIONAL_IAM_POLICY_ARN>"]
}
Once deployed, you will be able to see a number of supporting resources in the kube-system
namespace.
$ kubectl get deployment efs-csi-controller -n kube-system
NAME READY UP-TO-DATE AVAILABLE AGE
efs-csi-controller 2/2 2 2 4m29s
$ kubectl get daemonset efs-csi-node -n kube-system
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
efs-csi-node 3 3 3 3 3 beta.kubernetes.io/os=linux 4m32s
Validate EFS CSI Driver¶
Follow the static provisioning example described here to validate the CSI driver is working as expected.