<p>When I use the kubectl run command instead of creating a deployment it creates a pod/selenium-node-chrome and as a result, I am unable to scale the selenium-node-chrome using the replicas command.</p>

<pre><code>PS C:\Users\Test&gt; kubectl run selenium-node-chrome --image selenium/node-chrome:latest --env="HUB_PORT_4444_TCP_ADDR=selenium-hub" --env="HUB_PORT_4444_TCP_PORT=4444"
pod/selenium-node-chrome created
PS C:\Users\Test&gt; kubectl scale deployment selenium-node-chrome --replicas=5
Error from server (NotFound): deployments.extensions "selenium-node-chrome" not found
</code></pre>

<p>The video tutorial that I followed successfully created deployment "selenium-node-chrome" after running the same command. Please I need help and I am new to Kubernetes. Thanks.</p>

melleck
<p>You should use a generator</p>

<pre><code>kubectl run selenium-node-chrome \
  --image selenium/node-chrome:latest \
  --env="HUB_PORT_4444_TCP_ADDR=selenium-hub" \
  --env="HUB_PORT_4444_TCP_PORT=4444" \
  --generator=deployment/apps.v1beta1
</code></pre>

<p><a href="https://v1-17.docs.kubernetes.io/docs/reference/kubectl/conventions/#generators" rel="nofollow noreferrer">https://v1-17.docs.kubernetes.io/docs/reference/kubectl/conventions/#generators</a>  </p>
