Kubernetes EFS volumes mounted as RWO

0

Hi,

For a deployment that I need to do on Kubernetes, I have to define several different storage classes, one with RWO disk devices, and other one with RWM. As far as I am aware, EBS volumes are RWO, and EFS volumes are RWX, so the easy solution is to define a storage class for EBS volumes, and other one called for RWX on each type of drive. However, my concern is about EBS volumes. As far as I am aware, an EBS volume is attached to a single node, so the pod should be "tied" always to that node. If for whatever reason that node crash, the pod will not be able to arrange on a new node.

My question is: In order to avoid that problem, may I define a RWO volume also on EFS drivers (instead the default RWX type) ?

Andres
asked 8 months ago487 views
1 Answer
0

if I understand the question correctly, yes you can set the access type of an EFS volume to RWO. See about halfway down this blog https://aws.amazon.com/blogs/storage/persistent-storage-for-kubernetes/

spec:
  accessModes:
    - ReadWriteOnce
profile picture
EXPERT
Steve_M
answered 8 months ago
  • The problem is that access type is defined on the PVC, and not on the class.. And since this is a helm deployment, I can not change the access type used on the PVC. The helm install requires me to define a StorageClass in advance, and the PVC would use that StorageClass, but I can not change the spec of the PVC, is hard-coded on the helm. So, going in further details: It is possible to define the accessMode in the storageclass or I am forces to do it on the PVC ?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions