<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>Assumed you have a deployment spec look like this:</p>
<pre><code>...
kind: Deployment
metadata:
  name: mydeployment
  ...
spec:
  ...
  template:
  ...
    spec:
      ...
      containers:
      - name: application
        image: nginx:1.14.0
        ...
      - name: sidecar
        image: busybox:3.15.0
        ...
</code></pre>
<p><code>kubectl set image deployment mydeployment application=nginx:1.16.0 sidecar=busybox:3.18.0</code></p>
