How the multiple replicas of k8s deployment running on different node read from aws EBS volume in READWRITEMANY pv mode?

7/22/2020

As we use readwritemany mode with pv to read and write the data from pod running on different node, but in case of aws we are using the ebs volume (i.e one ebs volume will attach to one ec2-instance at a time). So how we can achieve RWM with ebs volume?

-- Khushboo Kumari
amazon-eks
amazon-web-services
kubernetes

1 Answer

7/22/2020

From the docs here AWSElasticBlockStore volume plugin does not support ReadWriteMany. Hence you can not use that for ReadWriteMany. Check that table for other feasible options which support ReadWriteMany.

Refer to this question for more details https://stackoverflow.com/questions/51212904/kubernetes-pvc-with-readwritemany-on-aws

If you want ReadWriteMany use Amazon EFS CSI Driver as documented here

-- Arghya Sadhu
Source: StackOverflow