pangea_enable_postgres
Enables or updates an isolated Managed PostgreSQL 17 cluster and injects credentials like DATABASE_URL and PGSSLMODE into your Pangea app, so rolling workloads connect with ready-to-use database access.
Instructions
Enable or update isolated self-service Managed PostgreSQL 17 (Mini+, stateless rolling HTTP apps). Injects DATABASE_URL, PGHOST, PGUSER, PGPASSWORD, PGSSLMODE=require, and PANGEA_POSTGRES_CA_PEM.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pangea_enable_postgres"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Immediately roll running workloads to inject credentials (default: true) | |
| cpu_m | No | PostgreSQL CPU in millicores (250-8000, default: 500) | |
| project | No | Optional project ID (prj_...) or project name (omit when directory has pangea.yaml) | |
| directory | No | Optional local directory containing pangea.yaml | |
| memory_mib | No | PostgreSQL memory in MiB (256-16384, default: 512) | |
| storage_gib | No | PostgreSQL Longhorn PVC size in GiB (1-256, default: 2) | |
| wait_seconds | No | Seconds to wait for cluster and credential readiness (default: 120) | |
| storage_class | No | Storage class (default: longhorn replicated; longhorn-single for scratch/disposable) | |
| inject_database_url | No | Inject reserved DATABASE_URL env var automatically (default: true) |