hardkubectl

Apply a LimitRange manifest to set default CPU and memory limits in a namespace

command

kubectl apply -f limitrange.yaml -n NAMESPACE

also accepted

kubectl apply -fkubectl apply -f limitrange.yaml -n

Command breakdown

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

kubectlapply-flimitrange.yaml-nNAMESPACE
FlagPurpose
-fBoolean flag
-nBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →