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 namespaceTest your recall — not just your reading.
Practice with interactive quiz →