hardkubectl

Create a ResourceQuota to limit total resource consumption within a namespace

command

kubectl create quota QUOTA_NAME --namespace NAMESPACE --hard=pods=10,requests.cpu=4

also accepted

kubectl create quota

Command breakdown

Part of the Kubernetes CLI (kubectl) — Namespaces category.

kubectlcreatequotaQUOTA_NAME--namespaceNAMESPACE--hard=pods=10,requests.cpu=4
FlagPurpose
--namespaceBoolean flag
--hardSet to: pods=10,requests.cpu=4

Test your recall — not just your reading.

Practice with interactive quiz →