<p>Reading through &quot;Kubernetes In Action&quot; book, there is a kubectl command which creates a pod but does not deploy it:</p>
<pre><code>$ kubectl run kubia --image=dockeruser/kubia --port=8080 --generator=run/v1
replicationcontroller &quot;kubia&quot; created
</code></pre>
<p>The generator option is there to ensure that a replication controller is created and that there is no deployment. But in the version of kubectl that I am using, v1.22.3, the generator flag is deprecated. Leaving the generator option out will create the pod, but no replication controller.</p>
<p>Which command effectively creates the rc?</p>

<p>You don't need &quot;generator&quot; starting 1.17, you can use &quot;create&quot; like <code>kubectl create deployment kubia --image=dockeruser/kubia --port=8080</code></p>
