Recently, GitLab partnered up with Google Cloud to provide automatic deployment to Kubernetes clusters directly from project repos.
I enabled Auto Dev-Ops on my project, which just contains some Node.js and a Dockerfile, and as if by magic, I have a working deployment (after figuring out that I needed to make sure the exposed port was 5000 rather than anything else!)
But now I need to add some persistent storage to this. I'm aware of how to do this with pure Kubernetes, but I'm struggling to find out how to do this as part of my continuous deployment.
GitLab uses this script for Auto Dev-Ops, and I presume I might need to fork this to make my own .gitlab-ci.yml
to add the custom volume, but I just cannot see anywhere in which this could be done.
The only other option I can work out is to use the provided PostgreSQL installation which does have a persistent volume to store my data, but this would just be skirting around the basic issue.
Do I need a custom buildpack? Do I just do it via the Google Cloud Dashboard?