<p>Along with the container image in kubernetes, I would like to update the sidecar image as well.</p>
<p>What will be the <code>kubectl</code> command for this process?</p>

gaurav sharma
<p>kubernetes have the command <code>set image</code> that allow you to update an image to the expected version</p>
<p>the syntax is</p>
<pre><code>kubectl set image deployment/{deployment-name} {container name}:{image:version}
</code></pre>
<p>with a sample it look like</p>
<pre><code>kubectl set image deployment/nginx-deployment nginx=nginx:1.9.1
</code></pre>
<p>you can found the documentation of this command here <a href="https://kubernetes.io/fr/docs/concepts/workloads/controllers/deployment/#mise-%C3%A0-jour-d-un-d%C3%A9ploiement" rel="nofollow noreferrer">https://kubernetes.io/fr/docs/concepts/workloads/controllers/deployment/#mise-%C3%A0-jour-d-un-d%C3%A9ploiement</a></p>
