Previously this command used to create deployment for me from the cmdline. ``` . . .

daher:
previously this command used to create deployment for me from the cmdline.

kubectl run nginx5 --image=nginx --replicas=3

i use k8s 1.21… is this command gone?
what is the way to create deployment with a single command… any idea?

Mani:
kubectl create deploy <deploy-name> -options

unnivkn:

kubectl create deployment nginx5 --image=nginx --replicas=3

daher:
@unnivkn thanks a lot. is there a way to create replica set using a command

unnivkn:
I don’t think you need a command to create a replica, since it alone won’t function, instead you can scale replicas in a deployment. k scale deployment my-deploy --replicas=5 https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/

daher:
ok could you tell me wht is the use of kubectl attach