Using EBS volumes as persistent storage in EKS Cluster

0

Hello everyone,

I found the ebs-csi-driver which gives me the possibility to create EBS volumes and attach them dynamically to my cluster nodes.

I know the volume will be bound to the AZ and have some limitations but I would like to know if there is a way in which the volume will follow the pod which uses it. Let me explain, if the pod A on Node1 is using the PV1(mounted of the latter node), when the pod A get rescheduled into Node2, in the same AZ as Node1, it won't be able to find its persistent storage because the volume stays mounted on the old node.

Is there a mechanisms which grant me the possibility to detatch and attach the volume dynamically to nodes folowing the pod behavior?

I know there's multi-attach and EFS, but currently both solution will have a higher cost the first because it is only available using Io1/io2 and volumeNode: Block and the latter is a total different system replicated cross AZ.

Thank you for your time!

1 Antwort
0

Hey, EFS is a good solution here. It is replicated across AZ and also cheaper. https://aws.amazon.com/efs/pricing/

Use this blog to connect EFS with your EKS pods. https://repost.aws/knowledge-center/eks-pods-encryption-efs

Let me know if you need something

profile picture
beantwortet vor 5 Monaten
profile picture
EXPERTE
Kallu
überprüft vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen