Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • 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
    • Setting up external access to a pod in a cluster
    • All guides
      • All guides
      • Creating a project
      • Managing namespaces
      • Configuring project roles
      • Setting quotas in namespaces
      • Creating a project quota
    • Projects
    • Resource model
  • 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
  • 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.