[英]mount fuse filesystem inside kubernetes pod
I would like to mount a google drive inside my pod.我想在我的吊舱内安装一个谷歌驱动器。 I add:我加:
securityContext:
privileged: true
capabilities:
add:
- SYS_ADMIN
to the pod.到吊舱。 However, google drive ocamlfuse mounts the data directory, but a simple command on the mounted file system results with a Input/output error
.但是, google drive ocamlfuse 会挂载数据目录,但是在挂载的文件系统上执行一个简单的命令会导致Input/output error
。
Is it possible to mount a fuse filesystem inside a pod?是否可以在 pod 内安装 fuse 文件系统? Is there anything I need on the host?楼主有什么需要的吗?
You can use smarter-device-manager您可以使用smarter-device-manager
We have a similar setup with what described in this blog post and I can confirm we can mount /dev/fuse
device in unprivileged mode.我们有一个与这篇博文中描述的类似的设置,我可以确认我们可以在非特权模式下挂载/dev/fuse
设备。 https://randomopenstackthoughts.wordpress.com/2021/03/12/how-to-mount-dev-fuse-without-privileged-mode-in-kubernetes/ https://randomopenstackthoughts.wordpress.com/2021/03/12/how-to-mount-dev-fuse-without-privileged-mode-in-kubernetes/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.