Hi, am trying to use an image hosted on CGP Contai...
# google-cloud
b
Hi, am trying to use an image hosted on CGP Container Registry with Pulumi on a local k8s cluster However,
pulumi up
fails to pull the hosted image due to an authorization issue:
[ErrImagePull] unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: <https://cloud.google.com/container-registry/docs/advanced-authentication>
From the Docker command-line pulling a hosted image works fine though, so I feel that I've done the things hinted at in the doc link in the error message. I feel that the solution might not lie so much in Pulumi, but in my local k8s cluster (am using the k8s cluster provided by Docker Desktop btw). Any suggestions appreciated, been running around in circles for quite a bit, but haven't figured it out yet
b
Can you share the code you currently have?
b
I think I've reached the conclusion that the pulling of the image is done inside my k8s cluster, so not controlled in any way by Pulumi.
b
that's right, you need to add
imagePullSecrets