<p>I have a kubernetes RC/pod consisting of containers with images like: <code>foobar/my-image:[branch]-latest</code> where "branch" is the git branch ("master", etc).</p>

<p>What's the best way to use rolling-update to force the RC to re-pull the images to get the latest version? The brute force method is to simply delete the RC and re-create it, but that causes downtime for the service.</p>

<p>Is rolling update only possible if you specify an exact image tag, rather than something like "latest"?</p>

<p>You should be able to use a <a href="http://kubernetes.io/v1.0/docs/user-guide/kubectl/kubectl_rolling-update.html" rel="noreferrer">rolling update</a> specifying the same image name that you are currently using:</p>

<pre><code>kubectl rolling-update &lt;replication-controller-name&gt; --image=foobar/myimage:[branch]-latest
</code></pre>

<p>This will (behind the scenes) create a new replication controller that is a copy of your existing replication controller with the "new" image, and then stepwise resize each of the replication controllers until the old one has zero pods and the new one has the desired number of pods, finally deleting the old one and renaming the new one to use the old name. </p>
