1

Kind を使用して、ローカル リポジトリから Docker イメージをデプロイしています。https://medium.com/swlh/how-to-run-locally-built-docker-images-in-kubernetes-b28fbc32cc1dの記事に従い、ローカル リポジトリをセットアップしました。k8s デプロイメントをデプロイしようとすると、ポッドに次のエラーが表示されます

  Normal   Scheduled  9s    default-scheduler  Successfully assigned default/chatt-deployment-675c8dd456-m25mm to kind-control-plane
  Normal   Pulling    8s    kubelet            Pulling image "localhost:5000/chatt:latest"
  Warning  Failed     8s    kubelet            Failed to pull image "localhost:5000/chatt:latest": rpc error: code = Unknown desc = failed to pull and unpack image "localhost:5000/chatt:latest": failed to resolve reference "localhost:5000/chatt:latest": failed to do request: Head "http://kind-registry:5000/v2/chatt/manifests/latest?ns=localhost%3A5000": proxyconnect tcp: dial tcp [::1]:3128: connect: connection refused
  Warning  Failed     8s    kubelet            Error: ErrImagePull
  Normal   BackOff    7s    kubelet            Back-off pulling image "localhost:5000/chatt:latest"
  Warning  Failed     7s    kubelet            Error: ImagePullBackOff

どうすればこれを修正できるか知っていますか。

4

0 に答える 0