Is there a way to create a namespace with one label using kubectl?
e.g.
kubectl create ns <newnamespace> label=appid:foo12
as opposed to using kubectl apply -f <somefile>
This may help you:
kubectl create namespace namespace_name
kubectl label namespaces namespace_name labelname=value --overwrite=true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With