当我添加 GSCFuse 并在 Kubernetes 中部署我的应用程序时收到此错误消息任何建议可能是什么问题

问题描述

poststarthookerror: 命令 'gcsfuse -o nonempty config_files_1_bucket /home/test123/' 以 126 退出 我在我的 yaml 文件添加了 gcs fuse 命令,如

生命周期:

      postStart:
        exec:
          command:
          - gcsfuse
          - -o
          - nonempty
          - config_files_1_bucket
          - /home/test123
      preStop:
        exec:
          command:
          - fusermount
          - -u
          - /home/test123

解决方法

这里也一样。它曾经可以工作(在 gcsfuse 0.28.1 版上),但我不再(0.32.0)了。事实是他们删除了对非空选项 (https://github.com/appsembler/roles/pull/85) 的支持,因为它在 fusermount v3.0 中不再受支持 只需删除非空选项,它应该可以工作。

更多信息:https://github.com/GoogleCloudPlatform/gcsfuse/issues/424