<p>I am trying to push an update to my codebase for my docker image. I have the docker image on kubernetes on GCP and I followed the way it was mentioned in the document <a href="https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app" rel="noreferrer">here</a>.
I even pushed the image with :v2 tag to the container registry and that image is visible in the console as well. But now when I am trying to run:</p>

<pre><code>kubectl set image deployment/clustername myImageName=gcr.io/${PROJECT_ID}/myImageName:v2
</code></pre>

<p>it gives me the following error:</p>

<pre><code>error: unable to find container myImageName
</code></pre>

<p>I know that the image is there because I build it with </p>

<pre><code>docker build -t gcr.io/${PROJECT_ID}/myImageName:v2 .
</code></pre>

<p>I have also fixed the issue of: <code>Error from server (NotFound): deployments.extensions</code> 
I am stuck at this very moment. Can anyone throw some light on it?</p>

<p>The error message specifies that your deployment doesn't have a container named <code>myImageName</code>.</p>

<p>The syntax for <code>kubectl set image</code> is:</p>

<pre><code>kubectl set image deployment-name container-name=image-name
</code></pre>

<p><code>container-name</code> must be the name of a container you specified inside your deployment under <code>spec.template.spec.containers.name</code>.</p>
