nais opensearch create
nais opensearch create NAME [flags]
This command creates an OpenSearch instance.
Options
--http-max-content-length- Maximum HTTP request content length (for example, 100Mi).
--indices-query-bool-max-clause-count- Maximum number of clauses in a Lucene BooleanQuery.
-m,--memoryMEMORYof the OpenSearch instance. Defaults toGB_4.--shard-indexing-pressure-enabled- Enable shard indexing pressure (true or false).
--shard-indexing-pressure-enforced- Enforce shard indexing pressure limits (true or false).
--storage-gb- Storage capacity in
GBfor the OpenSearch instance. Defaults vary for different combinations ofTIERandMEMORY. --tierTIERof the OpenSearch instance. Defaults toSINGLE_NODE.--version- Major
VERSIONof the OpenSearch instance. Defaults toV2.
Inherited options
--config- Specify the
PATHto the configuration file. --confirm-login- Ask for confirmation before starting required login flows. Interactive terminals only.
-e,--environment- Select or filter by Nais
ENVIRONMENT, for example dev-gcp or prod-gcp. Overrides the environment configured with nais defaults set environment. --no-colors- Disable colors in the output.
-t,--team- Select the Nais
TEAMthat owns the resources. Overrides the team configured with nais defaults set team. -v,--verbose- Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.
Examples
# Create an OpenSearch instance named some-opensearch with default settings.
$ nais opensearch create some-opensearch
# Create an OpenSearch instance named some-opensearch with the specified |MEMORY|.
$ nais opensearch create some-opensearch --memory GB_4
# Create an OpenSearch instance named some-opensearch with the specified |TIER|.
$ nais opensearch create some-opensearch --tier SINGLE_NODE
# Create an OpenSearch instance named some-opensearch with the specified |VERSION|.
$ nais opensearch create some-opensearch --version V3_3
# Create an OpenSearch instance named some-opensearch with the specified |STORAGE-GB|.
$ nais opensearch create some-opensearch --storage-gb 100
# Create an OpenSearch instance named some-opensearch with all possible options specified.
$ nais opensearch create some-opensearch --memory GB_4 --tier SINGLE_NODE --version V2 --storage-gb 100 --shard-indexing-pressure-enabled true --shard-indexing-pressure-enforced false --indices-query-bool-max-clause-count 2048 --http-max-content-length 200Mi