Basic usage of Cluster-Wide Quotas¶
With Cluster Wide Quotas, cluster admins can bring all resources for all Paas'es belonging to a capability together in one cluster wide resource pool. This brings down over commit at the expense of the risks associated with resource sharing.
See benefits for more details on the exact use-case and it's benefits.
Use a quota per Paas¶
Set:
paasconfig.spec.capabilities['tekton'].quotas.clusterwidetofalse
Use CWQs with one hard-set value¶
You can use CWQs with a single hard-set value (e.a. 10).
Set:
paasconfig.spec.capabilities['tekton'].quotas.clusterwidetotruepaasconfig.spec.capabilities['tekton'].quotas.ratioto0paasconfig.spec.capabilities['tekton'].quotas.minto10
Use CWQs with autoscaling¶
You can use cluster wide quotas with an autoscaling feature.
For this example: every Paas is expected to use 1 CPU, and a minimum of 3 CPU should always be available. Additionally, a maximum of 10 CPU can be reserved, and we scale down to 10% of normal usage.
Set:
paasconfig.spec.capabilities['tekton'].quotas.clusterwidetotruepaasconfig.spec.capabilities['tekton'].quotas.defaultto1paasconfig.spec.capabilities['tekton'].quotas.minto3paasconfig.spec.capabilities['tekton'].quotas.maxto10paasconfig.spec.capabilities['tekton'].quotas.ratioto0.1(10%)