GoogleContainerTools / GoogleContainerTools/skaffold
Improve/Add suggestions for skaffold diagnostics help for ImagePullErr on GKe
- Dominant language
- Go
- Stars
- 15.9k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 10
Description
When running on GKE, i see the pod on GKE can't pull image just built in the same project.
However, it would be great to show the detailed error message as the suggestion is embedded in it.
```
Waiting for deployments to stabilize...
- deployment/leeroy-app: container leeroy-app is waiting to start: gcr.io/tejal-test/leeroy-app:v1.20.0-68-gc37150450@sha256:24ca3026589371b9a52459ca59c734196ce909ef088563bba1d5013170bccd59 can't be pulled
- pod/leeroy-app-568b954b54-sczr7: container leeroy-app is waiting to start: gcr.io/tejal-test/leeroy-app:v1.20.0-68-gc37150450@sha256:24ca3026589371b9a52459ca59c734196ce909ef088563bba1d5013170bccd59 can't be pulled
- deployment/leeroy-app failed. Error: container leeroy-app is waiting to start: gcr.io/tejal-test/leeroy-app:v1.20.0-68-gc37150450@sha256:24ca3026589371b9a52459ca59c734196ce909ef088563bba1d5013170bccd59 can't be pulled.
Cleaning up...
```
When i ran `kubectl events` i get more detailed error message with a Action item to see https://cloud.google.com/container-registry/docs/advanced-authentication
```
2m Warning Failed pod/leeroy-web-8645f4f5bb-hdr69 Failed to pull image "gcr.io/tejal-test/leeroy-web:v1.20.0-68-gc37150450-dirty@sha256:e9096f5855bd14a6c949f72b8e4ba20472a9ebb0b72af3e9bf0da4e91fe3e456": rpc error: code = Unknown desc = Error response from daemon: 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
```
Contributor guide
Assessment
This issue has not been assessed yet.