So I was deploying a bunch of small Ghost sites using Kubernetes and just using Local Storage, because I figure if I already need local storage to upload Themes, why not use it for images (these are small sites). This also made them super modular and I loved that; however, using Kubernetes from DigitalOcean I can only have 7 local storage modules per node in the cluster, and when you factor in redundancy, that means only 3 realistically per node making it super expensive to run.
So how can I migrate away from local storage? I’m going to deploy clustered MySQL and use S3 (DigitalOcean spaces) for media storage but I still would need some for the theme. I was hoping I could just deploy but then I’d have to copy the theme into the container every time and I’m not super fond of that idea as I want to still be able to upload themes to the folder.
I need to figure out these two problems:
- How do I migrate images from local storage to S3
- How do I handle the theme files?