<p>Or in simple words, what is syntax of the <code>kubectl set image</code>?</p>
<p>Note:
kubectl provides set image command but it often confuses developers. I hope this question helps =)</p>

Muhammad Ali
<p>We can use this format to easily remember how this command works:</p>
<pre><code>kubectl set image deployment &lt;deployment-name&gt; &lt;container-name&gt;=&lt;image-name&gt;:&lt;image-version&gt;
</code></pre>
<p>For example:</p>
<pre><code>kubectl set image deployment frontend simple-webapp=kodekloud/webapp-color:v1
</code></pre>
<p>Here in the above example, <code>frontend</code> is the deployment name, <code>simple-webapp</code> is the name of the container, <code>kodekloud/webapp-color</code> is the name of the image and finally, <code>v1</code> is the image version.</p>
<p>P.S.
If this helps, do upvote!</p>
<p>Wanna connect, feel free to share an invite at <a href="https://www.linkedin.com/in/alihussainia" rel="nofollow noreferrer">Linkedin</a></p>
