Hi All, Can we still use the kubectl run command to create deployments?

Anish Nagaraj:
Hi All, Can we still use the kubectl run command to create deployments?

Himanshu Gude:
I dont think so, it is for only pods.

Mohamed Ettaki Talbi:
yes you can

Mohamed Ayman:
No, It’s to create a POD.

Mohamed Ayman:
You can use kubectl create imperative command to create the deployment.

Anish Nagaraj:
Previously it was possible I suppose. However, thank you guys!

mohammed iqbal:
even i believe we need to use kubectl create. but I came across lab 2 , first question in Mamshad ckad course, which He executed k run and it is creating deployment

Mohamed Ayman:
Yes, previously It was possible but in the new version of kubernetes you can’t.

Mohamed Ayman:
There’s a tip in the course explains that.

mohammed iqbal:
ok thanks

Anish Nagaraj:
With kubectl create deployment unfortunately i cannot mention labels

Anish Nagaraj:
however, it generates labels on its own