nais postgres create

nais postgres create POSTGRES [flags]

Create a new Postgres instance. Provisioning continues asynchronously.

Options

--cpu
Requested CPU, e.g. 100m.
--disk-size
Requested disk size, e.g. 10Gi.
--high-availability
Enable high availability (third instance and synchronous replication).
--memory
Requested memory, e.g. 512Mi.
--version
PostgreSQL major version (18).
-y, --yes
Confirm without a prompt.

Inherited options

--config
Specify the PATH to the configuration file.
-e, --environment
Specify the ENVIRONMENT to use for this command. Overrides the default environment from configuration.
--no-colors
Disable colors in the output.
-t, --team
Specify the TEAM to use for this command. Overrides the default team from configuration.
-v, --verbose
Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.

Examples

# Select the destination environment interactively and create a Postgres with platform defaults.
$ nais postgres create my-postgres -t my-team

# Create a Postgres in a specific environment.
$ nais postgres create my-postgres -t my-team -e dev-gcp

# Create a highly available Postgres with custom resources.
$ nais postgres create my-postgres -t my-team -e dev-gcp --high-availability --cpu 100m --memory 512Mi --disk-size 10Gi