GoogleContainerTools / GoogleContainerTools/skaffold

Add suggestions for err-image-pulled errors

Open
#6,922 3 comments 0 reactions 0 assignees View on GitHub
area/errors kind/todo needs-actionable-error
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

A user encountered an error where their GKE cluster was unable to pull the resulting image. The logs offered no suggestions for how to remedy the issue. Skaffold should offer a suggestion to check that the node account is able to retrieve the image; if the cluster is GKE, or if the image is from gcr.io or *-docker.pkg.dev, then we could recommend checking IAM.
```
Waiting for deployments to stabilize...
- pod/nodejs-hello-world-5467b58f5d-z956b: container server is waiting to start: gcr.io/cloud-code-333715/nodejs-hello-world:latest@sha256:ddf8be4247a6891c6ba14deace8b66ba20c9fef27b8e9ad03f4be0100213a85b can't be pulled
- deployment/nodejs-hello-world: container server is waiting to start: gcr.io/cloud-code-333715/nodejs-hello-world:latest@sha256:ddf8be4247a6891c6ba14deace8b66ba20c9fef27b8e9ad03f4be0100213a85b can't be pulled
- pod/nodejs-hello-world-5467b58f5d-z956b: container server is waiting to start: gcr.io/cloud-code-333715/nodejs-hello-world:latest@sha256:ddf8be4247a6891c6ba14deace8b66ba20c9fef27b8e9ad03f4be0100213a85b can't be pulled
- deployment/nodejs-hello-world failed. Error: container server is waiting to start: gcr.io/cloud-code-333715/nodejs-hello-world:latest@sha256:ddf8be4247a6891c6ba14deace8b66ba20c9fef27b8e9ad03f4be0100213a85b can't be pulled.
1/1 deployment(s) failed
Cleaning up...
- deployment.apps "nodejs-hello-world" deleted
- service "nodejs-hello-world-external" deleted
Cleanup completed in 910.004715ms
[Cloud Code]: Skaffold exited with code 1.
[Cloud Code]: Skipped clean up.
[Cloud Code]: To clean up deployed resources after each run, set cleanUp to true in your launch configuration /Users/xxx/hello-world-1/.vscode/launch.json
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.