Button to enable review apps, auto-edit `.gitlab-ci.yml`, auto-configure GKE
Description
If you didn't start from auto-deploy or otherwise have a .gitlab-ci.yml
, but want to add review apps, we could offer a button to enable review apps, which would then auto-edit .gitlab-ci.yml
and auto-configure GKE to run the apps. This is also useful for users that aren't ready to use Kubernetes for staging and production, probably because they already have some solution and it's not worth migrating, but they're interested in setting up review apps, which is something new to them, so has nothing to migrate from, so why not start with Kubernetes, and there's no easier way to do that then with GKE.
Proposal
- Add button to enable review apps
- Auto-edit
.gitlabi-ci.yml
to addreview
andcleanup
stages with appropriate jobs that leverage auto-deploy capabilities (just for review apps, leaving other CD untouched). - Leverage existing K8s cluster if configured
- Create new k8s cluster if needed
- Configure static IP, Let's Encrypt, and DNS (
*.<group>.gitlab-app.com
or*.<project>.<group>.gitlab-app.com
)