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=4also accepted
kubectl create quotacommand
kubectl create quota QUOTA_NAME --namespace NAMESPACE --hard=pods=10,requests.cpu=4also accepted
kubectl create quotaPart of the Kubernetes CLI (kubectl) — Namespaces category.
| Flag | Purpose |
|---|---|
--namespace | Boolean flag |
--hard | Set to: pods=10,requests.cpu=4 |
Test your recall — not just your reading.
Practice with interactive quiz →