<p>I'm trying to find a quick command to redeploy a pod in Kubernetes.</p>

<ol>
<li>Currently, I pushed my docker image to google cloud.</li>
<li>Then I list my pods</li>
</ol>

<pre><code>kubectl -n pringadi get pods
        NAME                                                        READY   STATUS      RESTARTS   AGE
        audit-server-757ffd5dd-ztn5s                                 1/1     Running     0          38m
        configs-service-75c98f68c7-q928q                            1/1     Running     0          36m       
</code></pre>

<ol start="3">
<li>I edit the deployment config
<code>kubectl edit deployment audit-server</code>.</li>
<li>Update/change the image name.</li>
<li>Save and exit.</li>
</ol>

<p>Kubernetes immediately recognizes the change and redeploy <code>audit-server</code>.</p>

<p><strong>Question:</strong>
What if I pushed my docker image (a newer image) to google cloud with the same name (Step 4) and just want to redeploy the <code>audit-server</code> based on the current image. Is there a command for that? It a tedious job to keep editing the deployment config (Step 3)</p>

<p>It's wholly unclear what you're trying to do, but taking a guess:</p>

<p><code>kubectl set image deploy audit-server "*=us.gcr.io/whatever/whateverelse:12345"</code> will bump the image in your deployment without having to invoke your editor</p>

<p>Alternatively, use something like <a href="https://github.com/GoogleContainerTools/skaffold#readme" rel="nofollow noreferrer">skaffold</a> or its competitors to continuously push and reload a Pod for development</p>
