To add a resource quota follow the steps outlined below. Choose one of the pre-defined resource quotas, or create a custom one. You will also need to add a LimitRange.

## Adding a resource quota tier to a namespace#

Select a tier from this list.

Now add this quota to the namespace. For example, if you want to add small tier quota to the namespace argocd run:

# From the root of this repo
$cd cluster-scope/base/core/namespaces/argocd$ kustomize edit add component ../../../../components/resourcequotas/small


## Adding a custom resource quota to a namespace#

Create your own resource in the appropriate namespace folder in cluster-scope/base/core/namespaces/<your_namespace> name this file resourcequota.yaml, ensure that the .metadata.name is set to <namespace_name>-custom. For example, if you were adding a custom quota to the namespace argocd you would run:

# From the root of this repo
$cd cluster-scope/base/core/namespaces/argocd$ kustomize edit add resource ./resourcequota.yaml


## Add Limit Range to the namespace#

Ensure that a default LimitRange is configured if adding a resource quota, otherwise your pods may encounter issues during creation. You can include a LimitRange from here. For example, if adding a LimitRange to the argocd namespace run the following:

# From the root of this repo
$cd cluster-scope/base/core/namespaces/argocd$ kustomize edit add component ../../../../components/limitranges/default