yc serverless container revision deploy
Статья создана
Обновлена 3 октября 2024 г.
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. |
--secret |
PROPERTY=VALUE[,PROPERTY=VALUE...] Revision secret. Possible property names:
|
--min-instances |
int Set the minimum number of concurrent instances. |
--zone-instances-limit |
int Upper limit for instances count in each zone. |
--zone-requests-limit |
int Upper limit for requests count in each zone. |
--network-id |
string Network id to be used in new revision. |
--network-name |
string Network name to be used in new revision. |
--subnets |
value[,value] Specifies the subnets for the revision. Can use subnet names or subnet ids, or both. Example: `--subnets=id1,id2 --subnets=name3'. |
--storage-mounts |
mount-point-path=/data,bucket=user-bucket,read-only=false DEPRECATED: Use mounts instead. Storage mounts. Example: mount-point-path=/data,bucket=user-bucket,read-only=false Possible property names:
|
--mount |
PROPERTY=VALUE[,PROPERTY=VALUE...] Add a mount to the revision. Example: type=ephemeral-disk,mount-point=/mnt/point,size=5GB Possible property names:
|
--no-logging |
Disable logging from container. |
--log-group-id |
string Send logs to custom log group by id. |
--log-group-name |
string Send logs to custom log group by name. |
--log-folder-id |
string Send logs to default log group of custom folder by id. |
--log-folder-name |
string Send logs to default log group of custom folder by name. |
--min-log-level |
string Min log level. Values: 'trace', 'debug', 'info', 'warn', 'error', 'fatal' |
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). |
--endpoint |
string Set the Cloud API endpoint (host:port). |
--token |
string Set the OAuth token to use. |
--impersonate-service-account-id |
string Set the ID of the service account to impersonate. |
--no-browser |
Disable opening browser for authentication. |
--format |
string Set the output format: text (default), yaml, json, json-rest. |
--jq |
string Query to select values from the response using jq syntax |
-h ,--help |
Display help for the command. |