Replicating EFS CSI dynamically-provisioned volumes

0

Hi, we have a Kubernetes cluster with a Storage Class to dynamically allocate EFS volumes using AWS EFS CSI driver. As known, dynamic PV are allocated using Access Points; in fact, deploying an app with a PVC asking for some space, in the CSI driver's logs, I see: "...successfully created PV pvc-4df6c960-a9e6-4626-bcff-62d6c4d7fe13 for PVC efs-claim and csi volume name fs-1eff1845::fsap-04c355c91d3af1544"

For Disaster/Recovery pourposes, I activated replication of EFS filesystem on another region of same account. As known, Access Points are not replicated. I'd like to know if there is a strategy to restore original applications with dynamic volumes in such a way to "see" replicated volumes. I was able to do it only pre-provisioning a PV statically pointing to the existing volume, with a hard work to find its references and changing resources manually.

Thanks

mimmus
已提问 6 个月前266 查看次数
2 回答
0
已接受的回答

Hello,

Thanks for reaching out to us at AWS re:Post. Sameer this side from EFS Support Team and here to assist further on the question you asked here.

As from the post, I can understand you are using EFS filesystem as a storage for Kubernetes cluster, wherein the access points on EFS filesystem are created dynamically using the CSI drivers. When using the EFS replication feature, the access points are not replicated. In a DR situation, you would like to know if there is a process to view the EFS volumes as seen in the source EFS filesystem, as you are currently pre-provisioning a PV statically and using them. Please correct me if I have misunderstood your query.

The EFS replication will replicate the data present in EFS filesystem (including the directories that are mapped to access point) and not the Access points created on the filesystem. Access points are part of the EFS configurations and the configurations do not replicate.

Due to this limitation, you need to perform the static provisioning in this scenario and point them to the existing EFS volumes [1].

I hope I was able to address your query on the post. In case of any follow-up queries/clarification, please proceed to open a case with AWS Support Engineering at [2]. Thanks for your patience & cooperation!

[1]. https://github.com/kubernetes-sigs/aws-efs-csi-driver/tree/master/examples/kubernetes/static_provisioning/specs [2]. https://console.aws.amazon.com/support/home#/case/create?issueType=technical

AWS
支持工程师
Sameer
已回答 5 个月前
profile picture
专家
已审核 2 个月前
0

I had come to the same conclusions, thanks!

I was able to mount dynamic volumes of replicated filesystem as static PVC/PV, manually pointing to the directories that are mapped to access points. It's not a practical procedure but it's definitely possible. I will try to encourage the use of static provisioning.

mimmus
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则