<p>I have a deployment that uses a private registry by the use of <code>imagePullSecrets</code>. It is running ok but when I try to update its image by specifying another tag like this:</p>

<p><code>kubectl set image deployment/mydeployment mycontainer=my_docker_hub_user/my_image:some_tag</code></p>

<p>my pod get a <code>ImagePullBackOff</code> status with the message:</p>

<p><code>Failed to pull image "my_docker_hub_user/my_image:some_tag": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/my_docker_hub_user/my_image/manifests/some_tag: unauthorized: incorrect username or password</code></p>

<p>But I cannot find how to inform user and password</p>

Eduardo
<p>Kubernetes uses secrets to store the credentials to pull from a private docker registry. You can check out <a href="https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/" rel="nofollow noreferrer">this guide</a> to set it up properly as most likely the <code>Secret</code> defined in the <code>imagePullSecrets</code> does not have access to your new image. You need to define a <code>Secret</code> that has access to the private docker registry and update the deployment with the new <code>imagePullSecrets</code>.</p>
