Can we use "--replicas" option while creating deployment? In this solution video . . .

Amal Srivastav:
can we use “–replicas” option while creating deployment? In this solution videos it is mentioned in separate command for scaling up. But for me I used this option while creating deployment.

Naresh Dulam:
with kubectl create deployment, --replicas will not work

Amal Srivastav:
it is working for me

Amal Srivastav:

Pankaj Arora:
It works

Amal Srivastav:
@Tej_Singh_Rana pls comment

Tej_Singh_Rana:
Yes, in older version it won’t work but in v1.20+ it will. @Amal Srivastav
You will get a k8s version 1.21 in the official exam so you can use --replicas flag with kubectl create deployment command.

Amal Srivastav:
Awesome…!!! Thanks @Tej_Singh_Rana