Interview Prep/Kubernetes/Configuration, Secrets and storage

How do you share a volume between multiple pods across nodes?

IntermediateScenarioConfiguration, Secrets and storage
Answer

Situation read → Several web pods need the same uploads directory.

What I'd do →

  1. Use a ReadWriteMany capable backend such as EFS, NFS or CephFS
  2. On EKS install the EFS CSI driver and create a StorageClass with provisioningMode: efs-ap
  3. Create a PVC with accessModes: ReadWriteMany
  4. Better, move uploads to S3 object storage
  5. Test concurrent writes and locking behaviour

Why → EBS is RWO only, so cross-node sharing needs a network filesystem or object storage.

Interview tip → Mention that object storage is usually the cleaner design.

All Kubernetes questions Roadmap: Kubernetes core

More on Configuration, Secrets and storage