[英]Spring-boot microservice application deployed with docker and kubernetes: Services not communicating
[英]Deploying Spring Boot Microservice to Kubernetes Issue - Failed to pull image
我在將所有 spring 引導微服務部署到 Kube.netes 時遇到問題。
我使用 minikube 通過下面顯示的所有這些命令打開 kube.netes 儀表板。
1 ) minikube start
2 ) minikube dashboard
接下來,我運行kubectl apply -f k8s
將所有服務部署到 Kube.netes。
我收到如下所示的錯誤。
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
這是截圖文件夾: 鏈接
這是 docker 中心:鏈接
這是回購協議:鏈接
這是在 docker 上運行的 minikube。
我該如何解決所有這些問題?
如果可以訪問 inte.net,您是否從集群節點內部嘗試過? Ping google.com 例如?
minikube ssh to access the minikube node.
很可能是網絡問題。
如果是這樣,您需要根據您的操作系統和虛擬化指定一個驅動程序。 (HyperV、VirtualBox 等)
您可以在此處找到完整列表
這是答案。
更改如下所示的行后,問題消失了。
imagePullPolicy: IfNotPresent
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.