Unique persistant storage in pod

Hello,

I’m looking to setup an LDAP service inside docker. I want to have multiple pods which are multiple master LDAP servers with each one having their own persistent storage.

At the moment all storage is shared between all the containers in the pod, which in this case won’t work as the LDAPs need to write to the storage as well as read it.

Does anyone have any ideas of how I might be able to do this?

One way I can see would be to use the shared storage and create a sub dir for each pod and store persistence there. This is fine until the container is restarted/reloaded, as it’ll then get a new id and grab a new storage location in the shared file system.