Skip to content

Database Provisioning

MCTL can provision databases for your services within a tenant.

Provision a Database

"Provision a PostgreSQL database for my-app in the staging tenant"

The mctl_provision_database tool:

  1. Creates a database instance in the tenant namespace
  2. Generates credentials and stores them as Kubernetes secrets
  3. Returns connection details for your application

Configuration

Database credentials are automatically injected into your service as environment variables:

VariableDescription
DATABASE_HOSTDatabase hostname
DATABASE_PORTDatabase port
DATABASE_NAMEDatabase name
DATABASE_USERDatabase username
DATABASE_PASSWORDDatabase password
DATABASE_URLFull connection string

Supported Databases

Currently supported database engines will be listed here as they become available.