I'm trying to migrate a typical single node LAMP stack with prestashop inside to kubernetes on Google Cloud Platform.
So far I've:
- Set up the database as an independent second generation Cloud SQL.
- Dockerized and uploaded a custom version of Prestashop with Apache and PHP.
- Set up the deployment deployment including the SQL proxy, and Ingress to expose the service.
This works, and I would leave it this way if It wouldn't make it so difficult to deploy any changes that have any kind of impact on the disk (uploading product images, installing new modules, etc.).
I want to move the whole html folder to a persistent volume. I've checked two options.
- Google persistent disk: It's easy to create and to attach to the pods, but it requires me to attach it to an instance in order to edit it. So it's kind of a bummer for CI.
- Google Cloud Storage (segment) it's easy to edit (even from the browser) but AFAIK it requires to use GCSFuse in order to attach it to the pods. (Which I read is both slow and in a beta state).
I would like some advice on what to use, preferably with flexibility of the Storage and the native attachment of the persistent disk. Regarding the bandwidth, so far there is little to no traffic to the stack, but it would be nice for it to scale in a decent way. (If not, the whole k8s cluster is kind of pointless).