Is there a way to mount a storage bucket to an instance so it can be used by the webserver as storage? If not, how can I add more storage to the instance without adding another persistent disk with an OS?
Aside from attaching a new persistent disk, you could also use a number of FUSE based utilities to mount either a Google Cloud Storage or AWS S3 bucket as a local disk.
s3fs: *Can work with Google Cloud or AWS *Bucket can be mounted on multiple systems at same time *Files are stored as objects on the bucket, so the files can be manipulated externally *A con is that it can be a little bit slow if you have a lot of files
S3QL: *Can work with Google Cloud or AWS *Bucket can be mounted on one system *Files are stored in a proprietary format, can't be manipulated outside of the mounted filesystem *Much faster than s3fs for many files *Doesn't handle network connectivity issues so well (manual fsck and remount if you lose network).
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With