Google Kubernetes Engine
Pre-requisites
You need to already have a Kubernetes cluster with a namespace running.Permissions
In order for Mage to create the dev resources, the namespace service account needs to have certain permissions. To create theClusterRole required for the
service account, you can run the following kubectl command:
PostgreSQL Database
By default, Mage will use a SQLite database for each dev environment. SQLite does not perform well in the cloud, so we recommend using a Postgres database instead. To connect to a Cloud SQL PostgreSQL database from your GKE workload, you’ll need to follow these steps. These steps can be found in the official Google documentation- Create your DB secrets
- Create your service account secrets
- Make sure to record the path of the service account credential file.
Configuring the manager workload
Currently, you will need to create the manager workload on your own. You can create aDeployment workload with the following environment variables:
You can also create a service to create an ip address to access the deployment. You will
need your service to point to port 6789 in order to access Mage.
Creating instances
Once the manager workload is created, you can create your development instances. If all the prerequisites were completed successfully, you should be able to simply enter a name for the StatefulSet workload, and press theCreate button.