Hello All, It sound silly but am unable to do that, getting below error

Rahul Tiwari:
Hello All, It sound silly but am unable to do that, getting below error.
labels.JPG

Ashok Kumar:
Hey @Rahul Tiwari you don’t have --label, -label, -l options for deployment object you can check available options on

kubectl create deploy --help

Rahul Tiwari:
@Ashok Kumar I have already checked kubectl create deploy --help but I cannot find any label option over there.

Ashok Kumar:
Which means you don’t have such option when you create deployments

VIP:
@Rahul Tiwari https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#create

Alex:
–labels will work with ‘run’ and not with ‘create’. So, you can create pods with labels imperatively but not deployment

Tej_Singh_Rana:
If you would like to add label to deployment then try with kubectl label
Reference - https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#label