Update project-quotas.md

This commit is contained in:
Rodion Miromind 2021-06-28 10:58:26 +03:00 committed by GitHub
parent 568767771e
commit a416013fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ linkTitle: "Project Quotas"
weight: 9600
---
KubeSphere uses requests and limits to control resource (for example, CPU and memory) usage in a project, also known as [ResourceQuotas](https://kubernetes.io/docs/concepts/policy/resource-quotas/) in Kubernetes. Requests make sure a project can get the resources it needs as they are specifically guaranteed and reserved. On the contrary, limits ensure that a project can never use resources above a certain value.
KubeSphere uses [Kubernetes requests and limits](https://kubesphere.io/blogs/understand-requests-and-limits-in-kubernetes/) to control resource (for example, CPU and memory) usage in a project, also known as [ResourceQuotas](https://kubernetes.io/docs/concepts/policy/resource-quotas/) in Kubernetes. Requests make sure a project can get the resources it needs as they are specifically guaranteed and reserved. On the contrary, limits ensure that a project can never use resources above a certain value.
Besides CPU and memory, you can also set resource quotas for other objects separately such as Pods, [Deployments](../../project-user-guide/application-workloads/deployments/), [Jobs](../../project-user-guide/application-workloads/jobs/), [Services](../../project-user-guide/application-workloads/services/) and [ConfigMaps](../../project-user-guide/configuration/configmaps/) in a project.
@ -28,7 +28,8 @@ If you use the account `project-admin` (an account of the `admin` role at the pr
![project-quotas](/images/docs/workspace-administration/project-quotas/project-quotas.png)
2. In the dialog that appears, you can see that KubeSphere does not set any requests or limits for a project by default. To set requests and limits to control CPU and memory resources, use the slider to move to a desired value or enter numbers directly. Leaving a field blank means you do not set any requests or limits.
2. In the dialog that appears, you can see that KubeSphere does not set any requests or limits for a project by default. To set
limits to control CPU and memory resources, use the slider to move to a desired value or enter numbers directly. Leaving a field blank means you do not set any requests or limits.
![set-project-quotas](/images/docs/workspace-administration/project-quotas/set-project-quotas.png)
@ -58,4 +59,4 @@ If you use the account `project-admin` (an account of the `admin` role at the pr
## See Also
[Container Limit Ranges](../../project-administration/container-limit-ranges/)
[Container Limit Ranges](../../project-administration/container-limit-ranges/)