<p>I ran</p>
<pre><code>kubectl rollout restart deployment &lt;my-deployment-name&gt;
</code></pre>
<p>in order to restart my single pod, launched under the deployment.</p>
<pre><code>NAME                                   READY   STATUS    RESTARTS   AGE
&lt;pod-name&gt;-vf24n                       1/1     Running   1          7d
&lt;pod-name&gt;-8fgqt                       0/1     Pending   0          14m
</code></pre>
<p>Sadly, I had no available resources on my affinity node to perform this operation, so the new created pod stuck in Pending state.</p>
<pre><code>Normal   NotTriggerScaleUp  2m57s (x31 over 7m58s)  cluster-autoscaler  pod didn't trigger scale-up (it wouldn't fit if a new node is added):
Warning  FailedScheduling   47s (x9 over 8m)        default-scheduler   0/3 nodes are available: 1 Insufficient memory, 2 node(s) didn't match Pod's node affinity/selector.
</code></pre>
<p>I would like to delete the Pending pod or somehow revert the rollout restart operation, without deleting the deployment. Is it possible?</p>

Mikolaj
<p><code>kubectl rollout undo deployment/my-deployment-name</code> will undo a rollout</p>
