Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Stackland
  • What's new
  • Installation
    • All tutorials
    • Installing Stackland on Yandex BareMetal
    • Installing Stackland on Yandex BareMetal via PXE
    • Installing Stackland on Yandex Cloud VMs
    • Setting up external access to a pod in a cluster
    • All guides
      • All guides
      • Creating a project
      • Managing namespaces
      • Configuring roles in a project
      • Setting quotas in namespaces
      • Creating a project quota
    • Projects
    • Resource model
    • Scaling a cluster
  • Access management
  • Pricing policy
  • Diagnostics and troubleshooting

In this article:

  • Using the CLI
  • Using the management console
  1. Step-by-step guides
  2. Projects
  3. Creating a project quota

Creating a quota

Written by
Yandex Cloud
Updated at April 8, 2026
View in Markdown
  • Using the CLI
  • Using the management console

After creating a project, the administrator can limit resources using the ResourceQuota object.

Using the CLIUsing the CLI

  1. Create a file of the ResourceQuota resource, e.g., using the touch resourcequota.yaml command.

  2. Open the file and paste the configuration below into it:

    Quota without scope
    Quota with scope
    apiVersion: v1
    kind: ResourceQuota
    metadata:
      name: example-quota
    spec:
      hard:
        requests.cpu: '2' # Requested CPUs: 2
        limits.cpu: '4'    # CPU limit: 4
        requests.memory: '1' # Requested RAM: 1 GB
        limits.memory: '10'   # RAM limit: 10 GB
        requests.nvidia.com/gpu: 1 # Requested GPUs: 1
    

    Note

    The quota will only be applied to pods with the priorityClassName: middle property.

    apiVersion: v1
    kind: ResourceQuota
    metadata:
      name: priority-class-quota
    spec:
      hard:
        limits.cpu: '10' # CPU limit: 10
        limits.memory: '20' # RAM limit: 20 GB
        requests.cpu: '5' # Requested CPU: 5
        requests.memory: '10' # Requested RAM: 10 GB
      scopeSelector:
        matchExpressions:
          - scopeName: PriorityClass
            operator: In
            values:
              - middle
    
  3. Apply the manifest: kubectl apply -f resourcequota.yaml -n <project name>. Optionally, you can specify the project name in the metadata.namespace resource property and skip it in the command.

Using the management consoleUsing the management console

  1. If you have not opened a project yet, select one.
  2. Go to the Quotas tab on the project description page.
  3. Click Add quota.
  4. Enter a name for the quota.
  5. Specify values for the limits.cpu and requests.cpu fields or select other resources.
  6. To apply the quota to the entire project, delete the text from the Scope field. Otherwise, the quota will only be applied to pods with the priorityClassName: middle property. Optionally, instead of deleting the text, you can change the scope to what is required to apply the quota.
  7. Click Save.

Was the article helpful?

Previous
Setting quotas in namespaces
Next
Pulling images
© 2026 Direct Cursus Technology L.L.C.