PoolCreate
Create and launch a new pool.
Unix
qarnot pool create
Windows
qarnot.exe pool create
USAGE:
Classic usage:
qarnot pool create --instanceNodes 4 --name "Pool name" --profile docker-batch
qarnot pool create --instanceNodes=4 --name="Pool name" --profile=docker-batch
Create a pool with scaling policies defined in a file:
qarnot pool create --name "Pool name" --profile docker-batch --scaling @scaling_file.json
qarnot pool create --name="Pool name" --profile=docker-batch --scaling=@scaling_file.json
File config usage:
qarnot pool create --file FileName.json
Logging errors (missing instanceNodes):
qarnot pool create --name "Pool name" --profile docker-batch
Flags:
-n, --name (Required) Name of the pool.
-s, --shortname ShortName of the pool.
-p, --profile (Required) Name of the profile used for the pool.
-i, --instanceNodes (Required if not elastic) instance count of the pool.
-e, --pool-is-elastic The pool create is elastic.
-f, --file File with a json configuration of the pool. (example : echo '{"Shortname": "SN","Name": "PoolName","Profile": "docker-batch","InstanceCount": 1}' > CreatePool.json)
-t, --tags Tags of the pool.
-c, --constants Constants of the pool.
--constraints Constraints of the pool.
--labels Labels of the pool.
-r, --resources Name of the buckets of the pool.
--tasks-wait-for-synchronization Have all the pool's tasks wait for the resources to be synchronized before running if the pool resources are updated before the task submission. (set to true or false, default: false)
--ttl Default TTL for the pool resources cache (in seconds). Default is 7776000s.
--max-total-retries Default maximum number of retries for the pool's tasks
--max-retries-per-instance Default number of retries for each instance of the pool's tasks
--scaling Scaling policies of the pool. Use either direct json format or a file path prefixed by '@'
--secrets-access-rights-by-key Give the pool access to secrets described by their keys
--secrets-access-rights-by-prefix Give the pool access to secrets described by their prefixes
--token Connection API Token.
--unsafe-ssl Don't check the ssl certificate.
--api-ca-certificate Path of your custom Ssl certificate.
-v, --verbose Set the max verbose messages.
-q, --quiet Set no verbose messages.
--no-color Remove the color on the console.
--format Change the result format. (format available: TABLE, JSON)(Default TABLE)
-h, --human-readable Print sizes in human readable format (e.g., 1K 234M 2G).
--min-slot Minimum slot number for the pool in elastic mode.
--max-slot Maximum slot number for the pool in elastic mode.
--min-idling-slot Minimum idling slot number.
--resize-period Elastic Resize Period.
--resize-factor Elastic Resize Factor.
--min-idling-time Minimum idling time.
--min-ling-node [DEPRECATED], use --min-idling-node instead
--min-ling-time [DEPRECATED] Use --min-idling-time instead
--resize-periode [DEPRECATED] use --resize-period instead
--min-node [DEPRECATED] Use --min-slot instead
--max-node [DEPRECATED] Use --max-slot instead
--min-idling-node [DEPRECATED] Use --min-idling-slot instead
--export-credentials-to-env Activate the exportation of the api and storage credentials to the task environment. Default is false.
--help Display this help screen.
--version Display version information.
Version: qarnot-1.18.2.0-f150e6f-2023-12-22T14:29:30Z-.NET6.0.24
Copyright: Copyright (C) 2023 Qarnot computing