nais valkey create
nais valkey create NAME [flags]
This command creates a Valkey instance.
Options
--max-memory-policyMAX_MEMORY_POLICYfor the Valkey instance. Defaults toNO_EVICTION.-m,--memoryMEMORYof the Valkey instance. Defaults toGB_1.--tierTIERof the Valkey instance. Defaults toHIGH_AVAILABILITY.-y,--yes- Automatic yes to prompts; assume ‘yes’ as answer to all prompts and run non-interactively.
Inherited options
--config- Specify the location for the configuration file.
-e,--environment- Filter by environment.
--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
# Create a Valkey instance named some-valkey with default settings.
$ nais valkey create some-valkey
# Create a Valkey instance named some-valkey with the specified |MEMORY|.
$ nais valkey create some-valkey --memory GB_4
# Create a Valkey instance named some-valkey with the specified |TIER|.
$ nais valkey create some-valkey --tier SINGLE_NODE
# Create a Valkey instance named some-valkey with the specified |MAX_MEMORY_POLICY|.
$ nais valkey create some-valkey --max-memory-policy ALLKEYS_LRU
# Create a Valkey instance named some-valkey with all possible options specified.
$ nais valkey create some-valkey --memory GB_4 --tier SINGLE_NODE --max-memory-policy ALLKEYS_LRU