Skip to content

Commit

Permalink
Add custom resource quota example
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed May 23, 2019
1 parent c7c55c5 commit 3c94c8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/en/docs/concepts/policy/resource-quotas.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ Here is an example set of resources users may want to put under object count quo
* `count/cronjobs.batch`
* `count/deployments.extensions`

The 1.15 release added support for custom resources using the same syntax.
For example, to quota a `widgets` custom resource in the `example.com` API group, use `count/widgets.example.com`.

When using `count/*` resource quota, an object is charged against the quota if it exists in server storage.
These types of quotas are useful to protect against exhaustion of storage resources. For example, you may
want to quota the number of secrets in a server given their large size. Too many secrets in a cluster can
Expand Down

0 comments on commit 3c94c8a

Please sign in to comment.