我正在尝试按照此处的文档部署 go 应用程序:
我已经按照文档中的步骤操作,但在步骤 5 中遇到错误。安装运行后
Helm install RELEASE-NAME ./helm-chart/MYAPP
我尝试运行 kubectl 获取 pods,但是没有一个 pod 准备好。
运行后
kubectl get pods
所有列出的 Pod 的状态均为 ImagePullBackOff。
我尝试运行 kubectl 描述 pod ,并得到以下错误:
Failed to pull image "mantissaa/todo-app": rpc error: code = Unknown desc = Error response from daemon: manifest for mantissaa/todo-app not found: manifest unknown: manifest unknown
我不确定还需要指定哪些其他细节。这是我尝试部署的 docker 中心存储库:https://hub.docker.com/repository/docker/mantissaa/todo-app/tags?page=1
默认情况下,Docker 尝试使用latest
标签。 根据您的私有 docker 存储库,您没有在那里定义它。相反,您只有0.1.0
标记。
docker pull mantissaa/todo-app
Using default tag: latest
Error response from daemon: manifest for mantissaa/todo-app:latest not found: manifest unknown: manifest unknown
docker pull mantissaa/todo-app:0.1.0
0.1.0: Pulling from mantissaa/todo-app
e7c96db7181b: Pull complete
a9b145f64bbe: Pull complete
3bcb5e14be53: Pull complete
1e6514cfa19a: Pull complete
fa28cb68c53c: Pull complete
064046777741: Pull complete
15442420c7af: Pull complete
Digest: sha256:b8327ea3eff41068eaa0d48c47687ef386e9f5de342758cca1f6735d53fc504a
Status: Downloaded newer image for mantissaa/todo-app:0.1.0
docker.io/mantissaa/todo-app:0.1.0
因此,您可能需要将图像标记更新为latest
或在helm
中指定 0.1.0 标记