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.
Can we use "--replicas" option while creating deployment? In this solution video . . .
with kubectl create deployment, --replicas will not work
it is working for me
@Tej_Singh_Rana pls comment
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.
Awesome…!!! Thanks @Tej_Singh_Rana