hardkubectl
Apply a LimitRange manifest to set default CPU and memory limits in a namespace
command
kubectl apply -f limitrange.yaml -n NAMESPACEalso accepted
kubectl apply -fkubectl apply -f limitrange.yaml -ncommand
kubectl apply -f limitrange.yaml -n NAMESPACEalso accepted
kubectl apply -fkubectl apply -f limitrange.yaml -nPart of the Kubernetes CLI (kubectl) — Namespaces category.
| Flag | Purpose |
|---|---|
-f | Boolean flag |
-n | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →