title: Kubernetes deployment Error: unknown flag: --replicas issue
body: <p>While creating a deployment using command</p>
  <pre><code>kubectl create deploy nginx --image=nginx:1.7.8 --replicas=2 --port=80
  </code></pre>
  <p>I am getting error <code>Error: unknown flag: --replicas</code></p>
  <pre><code>controlplane $ kubectl version
  Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;18&quot;, GitVersion:&quot;v1.18.0&quot;, GitCommit:&quot;9e991415386e4cf155a24b1da15becaa390438d8&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-03-25T14:58:59Z&quot;, GoVersion:&quot;go1.13.8&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
  Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;18&quot;, GitVersion:&quot;v1.18.0&quot;, GitCommit:&quot;9e991415386e4cf155a24b1da15becaa390438d8&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-03-25T14:50:46Z&quot;, GoVersion:&quot;go1.13.8&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
  controlplane $ kubectl create deploy nginx --image=nginx:1.7.8 --replicas=2 --port=80
  Error: unknown flag: --replicas
  See 'kubectl create deployment --help' for usage.
  </code></pre>
  <p>Could anyone please help me with the reason for this as this command is working on other Kubernetes clusters?</p>