<p>As per an <a href="https://medium.com/icetek/preparing-for-ckad-aa00a94b0db7" rel="nofollow noreferrer">article</a> I read, while using the '<em>kubectl run</em>' command,</p>
<ul>
<li>--restart Always creates a deployment,</li>
<li>--restart Never creates a pod</li>
<li>--restart OnFailure creates a job</li>
</ul>
<p>However, when I try that on my Minikube installation it is creating a resource of kind: Pod</p>
<pre><code>k run ngingx --image=nginx -o yaml --dry-run=client --restart Always
apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    run: ngingx
  name: ngingx
spec:
  containers:
  - image: nginx
    name: ngingx
    resources: {}
  dnsPolicy: ClusterFirst
  restartPolicy: Always
status: {}
</code></pre>
<p>Has the feature been deprecated or am I doing something wrong ?</p>
<p>Thank You</p>

Karthik Rao V
<p>it should be like this</p>
<p><code>kubectl create deployment ngingx --image=nginx -o yaml --dry-run=client</code></p>
<p>Nope the <code>restart: Always</code> does not create pod or deplyoment it's about the container restart policy which is used for restarting container if pod crashes it tries restart.</p>
