Deeploy Core requires a PostgreSQL database that will act as the backend for Deeploy's APIs and the Log and Event storage. The Cloud SQL instance we created in the first step of the installation can be used to create two databases for Deeploy. The database names are set, since Deeploy is coded to interact with specifically these database names.
The commands below can be used in both databases, but more options for your database can be found in the Google Cloud SQL PostgreSQL Documentation.
gcloud sql databases create deeploy --instance=<NAME>
gcloud sql databases create deeploy_kratos --instance=<NAME>
To confirm that your databases have been created, use the following command:
gcloud sql databases list --instance=<NAME>
The databases have been created with a public database schema, which is required for Deeploy to work correctly.