<p>I am trying to create a deployment with Kubectl run. I want to specify replicas as part of the command.
I get</p>
<pre><code>Error: unknown flag: --replicas
</code></pre>
<p>Is this deprecated in the current version. If yes how do we achieve replicas.</p>

<p>Using <code>kubectl run</code> for deployments has been deprecated for quite some time and removed in a recent kubernetes version.</p>
<p>If you want to create a deployment using the kubectl commandline, use</p>
<pre><code>kubectl create deployment $deploymentname --image $image --replicas $replicacount
</code></pre>
<p>see the official documentation for <a href="https://kubernetes.io/docs/reference/kubectl/overview/" rel="nofollow noreferrer">here</a> for more detail.</p>
