hardkubectl
Add a label to a namespace, commonly used for network policy targeting
command
kubectl label namespace NAMESPACE KEY=VALUEalso accepted
kubectl label namespacecommand
kubectl label namespace NAMESPACE KEY=VALUEalso accepted
kubectl label namespacePart of the Kubernetes CLI (kubectl) — Namespaces category.
Test your recall — not just your reading.
Practice with interactive quiz →