When you create quotas, you are recommended to use what built-in feature to assist you?
Resources managed by quotasThe following describes the set of compute resources and object types that can be managed by a quota. Show
Quota scopesEach quota can have an associated set of scopes. A quota only measures usage for a resource if it matches the intersection of enumerated scopes. Adding a scope to a quota restricts the set of resources to which that quota can apply. Specifying a resource outside of the allowed set results in a validation error.
A
A
Quota enforcementAfter a resource quota for a project is first created, the project restricts the ability to create any new resources that may violate a quota constraint until it has calculated updated usage statistics. After a quota is created and usage statistics are updated, the project accepts the creation of new content. When you create or modify resources, your quota usage is incremented immediately upon the request to create or modify the resource. When you delete a resource, your quota use is decremented during the next full recalculation of quota statistics for the project. A configurable amount of time determines how long it takes to reduce quota usage statistics to their current observed system value. If project modifications exceed a quota usage limit, the server denies the action, and an appropriate error message is returned to the user explaining the quota constraint violated, and what their currently observed usage statistics are in the system. Requests versus limitsWhen allocating compute resources, each container might specify a request and a limit value each for CPU, memory, and ephemeral storage. Quotas can restrict any of these values. If the quota has a value specified for Sample resource quota definitions
Creating a quotaYou can create a quota to constrain resource usage in a given project. Procedure
Creating object count quotasYou can create an object count quota for all standard namespaced resource types on OpenShift
Container Platform, such as When using a resource quota, an object is charged against the quota upon creation. These types of quotas are useful to protect against exhaustion of resources. The quota can only be created if there are enough spare resources within the project. Procedure To configure an object count quota for a resource:
Setting resource quota for extended resourcesOvercommitment of resources is not allowed for extended resources, so you must specify Procedure
Viewing a quotaYou can view usage statistics related to any hard limits defined in a project’s quota by navigating in the web console to the project’s Quota page. You can also use the CLI to view quota details. Procedure
Configuring explicit resource quotasConfigure explicit resource quotas in a project request template to apply specific resource quotas in new projects. Prerequisites
Procedure
|