I have the following:
2 pod replicas, load balanced. Each replica having 2 containers sharing network.
What I am looking for is a shared volume...
I am looking for a solution where the 2 pods and each of the containers in the pods can share a directory with read+write access. So if a one container from pod 1 writes to it, containers from pod 2 will be able to access the new data.
Is this achievable with persistent volumes and PVCs? if so what do i need and what are pointers to more details around what FS would work best, static vs dynamic, and storage class.
Can the volume be an S3 bucket?
Thank you!
Refer to https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes for all available volume backends (You need ReadWriteMany
compatibility)
As you can find there AWSElasticBlockStore
doesn't support it. You will need any 3rd party volume provider which supports ReadWriteMany
.
UPD: Another answer https://stackoverflow.com/a/51216537/923620 suggests that AWS EFS works too.
There are several options depending on price and efforts needed: