https://pulumi.com logo
#google-cloud
Title
# google-cloud
b

brash-cricket-30050

09/09/2021, 11:25 AM
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

billowy-army-68599

09/09/2021, 2:28 PM
Can you share the code you currently have?
b

brash-cricket-30050

09/10/2021, 2:17 PM
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

billowy-army-68599

09/10/2021, 4:13 PM
that's right, you need to add
imagePullSecrets
2 Views