GoogleCloudPlatform / microservices-demo

Sample cloud-first application with 10 microservices showcasing Kubernetes, Istio, and gRPC.
https://cymbal-shops.retail.cymbal.dev
Apache License 2.0
16.6k stars 7.04k forks source link

Failing to pull images #1679

Closed Alex99P closed 1 year ago

Alex99P commented 1 year ago

I tried to develop in the local cluster, but got the "falling to pull image" error for almost all images.

image

I am new to K8s.

NimJay commented 1 year ago

Hi @Alex99P, Question 1: What command(s) did you run to deploy the Kubernetes manifests? For instance, did you use kubectl apply -f ./release/kubernetes-manifests.yaml? Or did you use skaffold run? Or skaffold dev?

NimJay commented 1 year ago

Question 2: What type of local cluster are you using? A minikube cluster? A kind cluster?

Alex99P commented 1 year ago

Hi @NimJay, I used skaffold run in a minikube cluster.

NimJay commented 1 year ago

@Alex99P, thanks for the quick response.

If you just want to deploy the app into your minikube cluster (and not develop/change the source code), you can run:

kubectl apply -f ./release/kubernetes-manifests.yaml

instead of:

skaffold ...

Using kubectl apply -f ./release/kubernetes-manifests.yaml means that:

  1. you won't build the microservice images locally
  2. you will use prebuilt images (e.g., gcr.io/google-samples/microservices-demo/emailservice:v0.6.0 listed in ./release/kubernetes-manifests.yaml)

Heads-up: Apple M1 chips (and other ARM devices) are not supported at the moment. Relevant issue here. :(

Alex99P commented 1 year ago

Thank you for answers!