hardkubectl

Add a label to a namespace, commonly used for network policy targeting

command

kubectl label namespace NAMESPACE KEY=VALUE

also accepted

kubectl label namespace

Test your recall — not just your reading.

Practice with interactive quiz →