You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Jindolph
changed the title
Build Image name is mismatched.
Build image name is mismatched.
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
The text was updated successfully, but these errors were encountered: