skip to Main Content

I have a problem about deploying all spring boot microservices to Kubernetes.

I use minikube to open kubernetes dashboard through all these commands shown below.

1 ) minikube start
2 ) minikube dashboard

Next, I run kubectl apply -f k8s to deploy all services to Kubernetes.

I get errors shown below.

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

Here is the screenshot folder :Link

Here is the docker hub : Link

Here is the repo : Link

Here is the minikube running on docker.

enter image description here

enter image description here

How can I fix all these issues?

2

Answers


  1. Chosen as BEST ANSWER

    Here is the answer.

    After I changed the line shown below, the issue disappeared.

    imagePullPolicy: IfNotPresent
    

  2. Did you try from inside a clusternode if you can reach the internet. Ping google.com for example?

    minikube ssh to access the minikube node.
    

    Most likely it is network problem.

    If so you need to specify a driver, according to your OS and Virtualizzation. (HyperV, VirtualBox ecc.)

    You can found a complete list here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search