Kubernetes: How to map 2 different pods(statefulset) to one persistense volume?

50 Views Asked by At

How to map 2 different pods(statefulset) to one persistense volume? We need to bind 2 pods to use one storage. Does it possible? We have the microk8s locally and create 2 manifests for two different pods, not replicas. We use dynamicly volumeClaimTemplates. But each time it creates 2 new pvc claims and pv, with different names.enter image description here

1

There are 1 best solutions below

0
Ron Etch On

Check accessMode ReadWriteMany and its supported storage types (e.g. CephFS, NFS, CSI, etc.).