Skip to content

Basic usage of CWQs

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.

Use a quota per Paas

Set:

  • paasconfig.capabilities['tekton'].quotas.clusterwide to false

Use CWQs with one hard-set value

You can use CWQs with a single hard-set value (e.a. 10).

Set:

  • paasconfig.capabilities['tekton'].quotas.clusterwide to true
  • paasconfig.capabilities['tekton'].quotas.ratio to 0
  • paasconfig.capabilities['tekton'].quotas.min to 10

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.capabilities['tekton'].quotas.clusterwide to true
  • paasconfig.capabilities['tekton'].quotas.default to 1
  • paasconfig.capabilities['tekton'].quotas.default to 1
  • paasconfig.capabilities['tekton'].quotas.min to 3
  • paasconfig.capabilities['tekton'].quotas.max to 10
  • paasconfig.capabilities['tekton'].quotas.ratio to 0.1 (10%)