<p>If I rollback a deployment to a previous version as the <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-back-to-a-previous-revision" rel="nofollow noreferrer">docs specify</a>:</p>
<pre><code>kubectl rollout undo deployment.v1.apps/nginx-deployment
kubectl rollout status deployment.v1.apps/nginx-deployment
</code></pre>
<p>Say we start at version A, update deployment to version B, use rollout undo to go back to version A, is there any way to roll forward and get back to version B?</p>

jjbskir
<p>The newest version should be in your history.</p>
<pre><code>kubectl rollout history deployment.v1.apps/nginx-deployment
</code></pre>
<p>Find the <code>newest-revision</code> and plug it in below:</p>
<pre><code>kubectl rollout undo deployment.v1.apps/nginx-deployment --to-revision=&lt;newest-version&gt;
</code></pre>
