Build a Microservice Architecture with Spring Boot and Kubernetes

Tilak Sharma

Hi,
Thanks for this excellent step-by-step tutorial. It’s awesome!

After the step,
docker push gcr.io/$PROJECT_NAME/kayak-…
I’m unable to get the kayak-service pod running.
It fails because of the error: Error: Unable to access jarfile springbootkbe-0.1.0-SNAPSHOT.jar

This is because the DockerFile had it like this:
ENV APP_FILE springbootkbe-0.1.0-SNAPSHOT.jar

I see that the actual file name is 0.0.1 and not 0.1.0.
So I modified the DockerFile accordingly, rebuild the docker image, pushed it again, but somehow the GKE still takes the old configuration of the DockerFile and still doesn’t start the Pod.

Please help.