Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Serverless Containers
  • Comparison with other Yandex Cloud services
    • All guides
    • Getting an IAM token for a service account using a container
      • Making a revision active
      • Changing the container operation mode
        • Viewing scaling settings
        • Adding scaling settings
        • Deleting scaling settings
      • Adding environment variables
      • Specifying a cloud network
      • Transferring Yandex Lockbox secrets
      • Viewing monitoring charts
      • Migration to the ru-central1-d availability zone
      • Deleting a container
    • Viewing operations with service resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing a container
  3. Scaling a container
  4. Deleting scaling settings

Deleting container scaling settings

Written by
Yandex Cloud
Updated at October 17, 2024
Management console
CLI
API
  1. In the management console, select the folder with your container.
  2. Select Serverless Containers.
  3. Select the container.
  4. Go to the Editor tab.
  5. Under Settings, set the number of ready-to-go instances to 0.
  6. Click Create revision.

To delete scaling settings for a container, create a new container revision and set the min-instances parameter to 0:

yc serverless container revision deploy \
  --container-id <container_ID> \
  --image <Docker_image_URL> \
  --cores 1 \
  --memory 1GB \
  --execution-timeout 3s \
  --service-account-id <service_account_ID> \
  --min-instances 0

Where:

  • --container-id: Container ID. To find out the ID, get a list of containers.
  • --cores: Number of cores available to the container.
  • --memory: Required memory. The default value is 128 MB.
  • --execution-timeout: Timeout. The default value is 3 seconds.
  • --service-account-id: ID of the service account authorized to download the image.
  • --min-instances: Number of ready-to-go instances.

Result:

id: bbajn5q2d74c********
container_id: bba3fva6ka5g********
created_at: "2021-07-09T15:04:55.135Z"
image:
  image_url: cr.yandex/crpd3cicopk7********/test-container:latest
  image_digest: sha256:de8e1dce7ceceeafaae122f7670084a1119c961cd9ea1795eae92bd********
resources:
  memory: "1073741824"
  cores: "1"
execution_timeout: 3s
service_account_id: ajeqnasj95o7********
status: ACTIVE

To delete container scaling settings, use the deployRevision REST API method for the Container resource or the ContainerService/DeployRevision gRPC API call.

See alsoSee also

  • Scaling a container.

Was the article helpful?

Previous
Adding scaling settings
Next
Adding environment variables
Yandex project
© 2025 Yandex.Cloud LLC