gcsfuse Input/Output error

后端 未结 5 1743
-上瘾入骨i
-上瘾入骨i 2021-02-20 06:34

I\'m getting an Input/Output error when I try and create a directory or file in a google cloud storage bucket mounted on a linux (Ubuntu 15.10) directory.

Steps I have d

5条回答
  •  醉梦人生
    2021-02-20 06:47

    I was facing this issue intermittently, so figured I'd share what I found:

    I'm using minikube for development and GCP for production.

    I have the following postStart lifecycle hook:

    lifecycle:
      postStart:
        exec:
          command: ['gcsfuse', '-o', 'allow_other', 'bucket', 'path']
    

    Locally, I configured the permissions by running these two commands before creating the pod:

    $ gcloud auth login
    $ minikube addons enable gcp-auth
    

    Remotely, when creating my cluster, I enabled the permissions like so:

    gcloud_create_cluster:
        gcloud container clusters create cluster \
        --scopes=...storage-full...
    

    While I was develoing, I found myself updating/overriding files wtihin 1 minute of each. Since my retention policy was set to 60 seconds, any modifications or deletions were disallowed in that time. The solution was to simply reduce it.

    This is not an end-all solution but hopefully someone else finds it useful.

提交回复
热议问题