<p>I was setting up a nginx cluster on google cloud, and I entered a wrong image name; instead of entering:</p>
<pre class="lang-sh prettyprint-override"><code>kubectl create deploy nginx --image=nginx:1.17.10
</code></pre>
<p>I entered:</p>
<pre class="lang-sh prettyprint-override"><code>kubectl create deploy nginx --image=1.17.10
</code></pre>
<p>and eventually after running <code>kubectl get pods</code>, It showed ImagePullBackOff as the status for the pod.</p>
<p>When I tried running the correct create deploy command above, It said &quot;nginx&quot; already exists.</p>
<p>When I tried doing <code>kubernetes delete --all pods</code>, the pod was recreated with a new ID but still had the same status, and still couldn't allow me to run the right 'kubectl create deploy' command above. Now I'm stuck.</p>
<p>How can I undo it?</p>

pintert3
<p>You need to delete the deployment:</p>
<pre><code>kubectl delete deploy nginx
</code></pre>
<p>Otherwise Kubernetes will recreate the pod on every shutdown.</p>
<p>You can see all your deployments with</p>
<pre><code>kubectl get deploy 
</code></pre>
