【问题标题】:Mount Azure Blob Storage in Kubernetes POD在 Kubernetes POD 中挂载 Azure Blob 存储
【发布时间】:2021-12-31 18:56:04
【问题描述】:

有一种方法可以在 kubernetes pod 上挂载 azure blob 存储帐户。

我在 kubernetes 中运行的 pod 需要使用 blob 存储中存在的文件。

我试过了:https://docs.microsoft.com/en-us/azure/storage/blobs/storage-how-to-mount-container-linux

# rpm -qa | grep blobfuse
blobfuse-1.3.6-1.el7.x86_64
[]# blobfuse /home/test/mycontainer --tmp-path=/home/test/blobfusetmp --config-file=/home/test/fuse_connection.cfg -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120
fuse: device not found, try 'modprobe fuse' first
[]# modprobe fuse
modprobe: ERROR: could not insert 'fuse': Cannot allocate memory

谢谢 萨蒂扬

【问题讨论】:

    标签: azure kubernetes azure-blob-storage


    【解决方案1】:

    您需要创建一个特权容器才能使用 fuse。作为一种解决方法,您可以在具有特权的 sidecar 容器中执行熔断器安装,并保持主容器正常 - 请参阅 https://github.com/kubernetes/kubernetes/issues/92114#issuecomment-687104831 示例。

    或者,您可以尝试 blob csi 驱动程序https://github.com/kubernetes-sigs/blob-csi-driver

    【讨论】:

      猜你喜欢
      • 2020-06-29
      • 2019-01-11
      • 2021-03-28
      • 2018-11-27
      • 2020-09-18
      • 2017-11-26
      • 2012-12-08
      • 2021-11-11
      • 1970-01-01
      相关资源
      最近更新 更多