[kubernetes/docker] failed to resolve reference ...:latest: not found

问题描述:

pod一直pending, kubectl describe pod ... 显示:

  Warning  Failed     9s (x3 over 63s)   kubelet            Failed to pull image "mathemagics/my-kube-scheduler": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/mathemagics/my-kube-scheduler:latest": failed to resolve reference "docker.io/mathemagics/my-kube-scheduler:latest": docker.io/mathemagics/my-kube-scheduler:latest: not found
 Warning  Failed     9s (x3 over 63s)   kubelet            Error: ErrImagePull

解决方案

参考: https://github.com/orgs/community/discussions/23606, “One thing to be aware of: The latest tag isn’t automatic, you need to push it like any other tag.”

总结起来:

要么给哪个image加上latest的tag,
要么在yaml声明中指定tag.

你可能感兴趣的:(kubernetes,docker,容器)