Skip to content

Commit

Permalink
Add custom resource quota example (#14492)
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt authored and k8s-ci-robot committed Jun 10, 2019
1 parent 3ad640e commit fc86f8f
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 create a quota on 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 fc86f8f

Please sign in to comment.