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
Pankaj Arora:
It works
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.