Can I mount Google cloud storage bucket to a pod as a persistent disk. If yes how?

11,977

Follow this github link. You need to install fuse in the image. Your container should be in previliged mode and you need to use lifecycle. https://github.com/maciekrb/gcs-fuse-sample

Share:
11,977

Related videos on Youtube

Ram
Author by

Ram

Updated on September 18, 2022

Comments

  • Ram
    Ram over 1 year

    I have a gke cluster with nodes in 3 different Zones but same region. I want to use persistent disks to my pods. But the pods are created randomly in all the 3 zones.How can I use a gcePD (common for all the nodes). or Can I add the storage bucket in the pod deployment (Yaml) file. If it is podssible .kindly suggest me how to do it?

    • Digil
      Digil over 6 years
      Have you tried mounting the Google Cloud storage bucket using the Cloud Storage FUSE?. I also find similar queries here in the community, which says its possible. See if that helps you.