# ResourceQuotas

In DuploCloud, [Kubernetes ResourceQuotas](https://kubernetes.io/docs/concepts/policy/resource-quotas/) control the total CPU, memory, and other resource usage allowed for workloads within each Tenant’s Kubernetes namespace, preventing Tenants from exceeding their resource allocations. You can create, view, update, and delete ResourceQuotas directly from the DuploCloud Portal.

## Adding a ResourceQuota

Create a new Kubernetes ResourceQuota limiting the total CPU, memory, or other resource usage allowed for workloads within your Tenant’s Kubernetes namespace.

1. In the DuploCloud Portal, navigate to **Administrator** → **Tenants**.
2. Select a Kubernetes-enabled Tenant from the **NAME** column.
3. Select the **Kubernetes Quota** tab.
4. Click Add. The **Add Resource Quota** pane displays.

<div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FA4NtSfLEe7CymVyDM2wi%2FScreenshot%20(537).png?alt=media&#x26;token=b8b50b1e-7f02-49f9-9ecf-ece4d64013b1" alt="" width="492"><figcaption><p><strong>Add Resource Quota</strong> pane</p></figcaption></figure></div>

5. Complete the fields shown in the table below.
   * **Note**: You must enter a **Resource Quota Name** and specify **at least one resource constraint** (e.g., CPU, memory, or a custom quota key) to create a valid quota.

<table data-header-hidden><thead><tr><th width="302"></th><th></th></tr></thead><tbody><tr><td><strong>Resource Quota Name</strong></td><td>Enter a unique name for the ResourceQuota.</td></tr><tr><td><strong>Memory Request</strong></td><td>Specify the max total memory workloads can request (e.g., <strong>4Gi</strong>).</td></tr><tr><td><strong>Memory Limit</strong></td><td>Specify the max total memory workloads can use (e.g., <strong>8Gi</strong>).</td></tr><tr><td><strong>CPU Request</strong></td><td>Specify the max total CPU workloads can request.</td></tr><tr><td><strong>CPU Limit</strong></td><td>Specify the max total CPU workloads can use.</td></tr><tr><td><strong>Additional Resource Quota</strong></td><td>Enter YAML input for other quota keys (e.g., <code>count/pods: 100</code>).</td></tr><tr><td><strong>Scope Selector</strong></td><td>Enter YAML input to define a <code>scopeSelector</code> for quota enforcement.</td></tr></tbody></table>

3. Click **Add** to save the quota. DuploCloud creates a Kubernetes ResourceQuota in the Tenant's namespace.

## Managing ResourceQuotas

You can view, modify, or delete ResourceQuota for a Tenant from within the DuploCloud Portal.

1. In the DuploCloud Portal, navigate to **Administrator** → **Tenants**.
2. Select the Tenant you want to manage from the **NAME** column.
3. Select the **Resource Quota** tab.
4. Click the menu icon (<img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F2zCpjpPJBxCltuVCLA89%2Fmenu%20icon.avif?alt=media&#x26;token=85eee83d-9971-4469-9bcd-61a43626d0fb" alt="" data-size="line">) at the end of the ResourceQuota’s row.
5. Choose one of the following actions:

<table data-header-hidden><thead><tr><th width="146.4444580078125">Action</th><th>Description</th></tr></thead><tbody><tr><td><strong>JSON</strong></td><td>View the ResourceQuota as a JSON representation.</td></tr><tr><td><strong>Edit</strong></td><td>Open the <strong>Update Resource Quota</strong> pane to modify fields.</td></tr><tr><td><strong>Delete</strong></td><td>Permanently remove the ResourceQuota.</td></tr></tbody></table>

<div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F0DKbfxhEyzJy6jmiI6yX%2FScreenshot%20(539).png?alt=media&#x26;token=bc0fd32a-aabd-4127-8ab0-f24c8bbdfb9c" alt="" width="488"><figcaption><p>JSON representation of the <strong>basic-quota</strong> ResourceQuota</p></figcaption></figure></div>

## Additional Resources

* [Kubernetes: ResourceQuotas](https://kubernetes.io/docs/concepts/policy/resource-quotas/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/kubernetes-overview/resourcequotas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
