yc serverless container revision deploy
Статья создана
Deploy new container revision
Command Usage
Syntax:
yc serverless container revision deploy (--container-id <CONTAINER_ID>|--container-name <CONTAINER_NAME>) [Flags...] [Global Flags...]
Flags
Flag | Description |
---|---|
--container-id |
string Container id. |
--container-name |
string Container name. |
--async |
Display information about the operation in progress, without waiting for the operation to complete. |
--memory |
byteSize Required memory. Example: '1GB', '128MB'. The default value is 128MB. |
--cores |
int Number of cores that will be available to a container instance. |
--core-fraction |
int If provided, specifies baseline performance for a core in percent. |
--execution-timeout |
duration Execution timeout. The default value is 3s |
--concurrency |
int Set the maximum number of concurrent requests allowed per container instance. |
--service-account-id |
string Service account id. |
--description |
string Revision description. |
--environment |
stringToString Revision environment variables. |
--image |
string Image to run |
--command |
value[,value] Comma-separated entrypoint for the container image. If not specified, the image's default ENTRYPOINT will be used. Pass an empty string to reset it to zero value. |
--args |
value[,value] Comma-separated list of arguments that are passed to the command, run by a container. If not specified, the image's default CMD will be used. Pass an empty string to reset it to zero value. |
Global Flags
Flag | Description |
---|---|
--profile |
string Set the custom configuration file. |
--debug |
Debug logging. |
--debug-grpc |
Debug gRPC logging. Very verbose, used for debugging connection problems. |
--no-user-output |
Disable printing user intended output to stderr. |
--retry |
int Enable gRPC retries. By default, retries are enabled with maximum 5 attempts. Pass 0 to disable retries. Pass any negative value for infinite retries. Even infinite retries are capped with 2 minutes timeout. |
--cloud-id |
string Set the ID of the cloud to use. |
--folder-id |
string Set the ID of the folder to use. |
--folder-name |
string Set the name of the folder to use (will be resolved to id). |
--token |
string Set the OAuth token to use. |
--format |
string Set the output format: text (default), yaml, json, json-rest. |
-h ,--help |
Display help for the command. |