Auto mount NFS for use by containers running on the same node


I may be going about this completely the wrong way, and would welcome anything to point me in the correct direction. However this is what I am trying to achieve.

I have a dedicated NFS server as part of my cluster, and would like to automatically mount some of the paths in /mnt as to be available to other containers running on the same node.

The info I have come across when Googling are

However, I don’t see how this would apply to my situation.
(I don’t know much about ZFS, or how it would fit in this context)

Could someone point to the appropriate link in the docs, or give me an example cloud-config.yml snippet?

Many thanks

Can you walk through a few specific use cases? It sounds like you probably want storage orchestration from something like Rancher, but I just want to make sure.

Hi Josh,

I ended up creating a dedicated NFS server (Outside of Rancher), and used the Rancher NFS storage provider to make sure all my container hosts have access to the NFS volumes they need.

This has been working a treat.


Great! Glad that’s working for you.