Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build image name is mismatched. #10

Open
Jindolph opened this issue Sep 3, 2024 · 0 comments
Open

Build image name is mismatched. #10

Jindolph opened this issue Sep 3, 2024 · 0 comments

Comments

@Jindolph
Copy link

Jindolph commented Sep 3, 2024

I'm here by following Spring Guide.
First, thanks for your efforts.

I don't know if it's right to say here.

Anyway, at the command line, building docker image, You used below, which means image name should be "spring-k8s/hello-spring-k8s".
./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=spring-k8s/hello-spring-k8s

and then, you use "spring-k8s/gs-spring-boot-k8s:snapshot" image on the kubectl command.
kubectl create deployment gs-spring-boot-k8s --image spring-k8s/gs-spring-boot-k8s:snapshot -o yaml --dry-run=client > deployment.yaml

One more thing to say, In my case, it didn't work with imagePullPolicy setting.
imagePullPolicy: Never
I solved it by loading image on minikube,
minikube image load $image_name

@Jindolph Jindolph changed the title Build Image name is mismatched. Build image name is mismatched. Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant