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

问题描述

poststarthookerror: command 'gcsfuse -o nonempty config_files_1_bucket /home/test123/' exited with 126 我在我的 yaml 文件中添加 gcs fuse 命令,例如

生命周期:

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

标签: dockerkubernetesgcsfuse

解决方案


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

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


推荐阅读