java 将Sping Boot 微服务部署到Kubernetes问题-无法提取映像

whhtz7ly  于 2023-01-11  发布在  Java
关注(0)|答案(1)|浏览(196)

我有一个关于部署所有Spring Boot 微服务到Kubernetes的问题。
我使用minikube通过下面显示的所有命令打开kubernetes Jmeter 板。
接下来,我运行kubectl apply -f k8s将所有服务部署到Kubernetes。
我收到如下所示的错误。

Auth Service -> Failed to pull image "noyandocker/authservice": rpc error: code = Unknown desc = context deadline exceeded

Api gateway -> Failed to pull image "noyandocker/apigateway": rpc error: code = Unknown desc = context deadline exceeded

Config server -> Failed to pull image "noyandocker/configserver": rpc error: code = Unknown desc = context deadline exceeded

Order Service -> Failed to pull image "noyandocker/orderservice": rpc error: code = Unknown desc = context deadline exceeded

Payment Service -> Failed to pull image "noyandocker/paymentservice": rpc error: code = Unknown desc = context deadline exceeded

Product Service -> Failed to pull image "noyandocker/productservice": rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 192.168.65.2:53: read udp 192.168.49.2:59506->192.168.65.2:53: i/o timeout

Mysql -> Show always "Pending" -> The selected container has not logged any messages yet.

Eureka -> container "eureka" in pod "eureka-0" is waiting to start: trying and failing to pull image

下面是截图文件夹:Link
以下是Docker集线器:Link
以下是回购协议:Link
这是minikube在docker上运行。

我如何解决所有这些问题?

n3h0vuf2

n3h0vuf21#

如果可以访问Internet,是否尝试从群集节点内部访问。例如Ping google.com?

minikube ssh to access the minikube node.

很可能是网络问题。
如果是这样,您需要根据您的操作系统和虚拟化指定驱动程序。(HyperV,VirtualBox等)
您可以找到完整的列表here

相关问题