I have attached a standard persistent disk to the instance. On that disk I have created a directory 'cloud-storage' (as always mkdir) in which I mount the bucket (Google Cloud Storage). Also I have added to fstab the command to mount it:
bucket_name /mnt/disks/disk1/cloud-storage gcsfuse
rw,file_mode=0770,dir_mode=0770,uid=33,gid=33,noatime,_netdev,noexec,user,implicit_dirs,allow_other 0 3
To mount it: mount /mnt/disks/disk1/cloud-storage
I access the Google Cloud Storage bucket without problems: it is mounted, unmounted and I access the data. When the bucket is mounted if I manually unmount it the 'cloud-storage' directory does not disappear. (its normal)
Problem: When I restart the instance and access the standard persistent disk the directory 'cloud-storage' does not exist.
Do I have to create a script that creates the 'cloud-storage' directory and then mount the bucket to run after reboot? Where should I call that script from? I must create the directory after mounting the standard disk and before mounting the bucket.