Replies: 2 comments 3 replies
-
I'm afraid I'm not much help on how to best accomplish it within Kubernetes, but in case it's helpful I think what you probably want as part of the "ideal end result" would be a separate moosefs/mfsmanpages/mfsmount.8 Lines 70 to 73 in 023198e |
Beta Was this translation helpful? Give feedback.
-
What about exporting a block device with "mfsbdev" ? This is what I am using with lxd containers, creating a big file on moosefs, exporting with mfsbdev, making a zfs filesystem on the device and every containers will have its own dataset: mfsbdev start -H mfsmaster zfs list Cheers Max |
Beta Was this translation helpful? Give feedback.
-
(FYI - I'm brand new to both docker and k8s, though I have been running containers for a while using nspawn.)
I want to access data on MooseFS within some k8s containers, but am not sure what the best-supported way of going about this is.
I see there is a CSI for MooseFS, but it doesn't seem to be configurable and mounts the entire filesystem. Obviously I can't just drop that into some published container where it expects to write otherwise everything will just go into the root of the filesystem.
Options I can think of offhand are to either try to get symlinks or bind mounts into the container image so that I can point things deeper into moosefs. I'd prefer not to have the entire filesystem mounted though, so another option would be to mount moosefs on the hosts, and then use hostpath to mount specific paths under that to each place they need to go, which would accomplish exactly what I want to do. Hostpath seems to be discouraged in the k8s community, but in this case a container could run on any host I believe as long as they all mount moosefs in the same place, and containers would see the same thing.
Beta Was this translation helpful? Give feedback.
All reactions