<p>I have a docker image pushed to Container Registry with <code>docker push gcr.io/go-demo/servertime</code> and a pod created with <code>kubectl run servertime --image=gcr.io/go-demo-144214/servertime --port=8080</code>.</p>

<p>How can I enable automatic update of the pod everytime I push a new version of the image?</p>

<p>I would suggest switching to some kind of CI to manage the process, and instead of triggering on docker push triggering the process on pushing the commit to git repository. Also if you switch to using a higher level kubernetes construct such as <code>deployment</code>, you will be able to run a rolling-update of your pods to your new image version. Our process is roughly as follows :</p>

<pre><code>git commit #triggers CI build
docker build yourimage:gitsha1
docker push yourimage:gitsha1
sed -i 's/{{TAG}}/gitsha1/g' deployment.yml
kubectl apply -f deployment.yml 
</code></pre>

<p>Where deployment.yml is a template for our deployment that will be updated to new tag version.</p>

<p>If you do it manually, it might be easier to simply update image in an existing deployment by running <code>kubectl set image deployment/yourdeployment &lt;containernameinpod&gt;=yourimage:gitsha1</code></p>
