Under Cloud accounts you store a service account for Google Cloud. MainPath uses it to create Kubernetes clusters (GKE) and optional databases (Cloud SQL) in your project.
Create a service account and JSON key
- Open the Google Cloud console and select the project where the clusters should live.
- Go to IAM & Admin → Service Accounts → Create service account.
- Choose a descriptive name such as
application-platform. - Assign roles that can create GKE clusters, networks, and Cloud SQL instances, for example Kubernetes Engine Admin, Cloud SQL Admin, and Compute Network Admin. In a dedicated project for MainPath, Editor is often enough.
- Open the new service account → Keys → Add key → Create new key with type JSON.
- Download the file. Google shows the private key only in that download.
The official guide is Create and delete service account keys.
Add the account in MainPath
- Open Cloud accounts and click Add cloud account.
- Choose Google Cloud.
- Enter a name, slug, and these values:
| Platform field | Source |
|---|---|
| Service account JSON | full contents of the JSON file |
| GCP project ID | the project_id field in that file; if you leave it empty, MainPath takes the value from the JSON |
| Region | Google Cloud region, for example europe-west3 for Frankfurt |
- Save. Then select the account when you create a cluster under Kubernetes clusters.