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
The preStop is not necessary since Spring Boot apps handle SIGTERM notifications and gracefully shut down.
In addition, Docker images for applications are often built with distroless base images that do not include a shell, so commands like the sh -c sleep 10 recommended here will not work. The ./mvnw spring-boot:build-image command suggested in this guide will use a base image that does not include a shell starting with Spring Boot 3.4.
The text was updated successfully, but these errors were encountered:
Thanks, @scottfrederick. Great catch. I have a pending PR #7 on this guide that touches a lot of files. I made an additional commit there that removes the preStop instructions.
PR #7 is waiting on a review from @ryanjbaxter but please feel free to also have a look.
The following should be removed from the example
deployment.yaml
file:The
preStop
is not necessary since Spring Boot apps handleSIGTERM
notifications and gracefully shut down.In addition, Docker images for applications are often built with distroless base images that do not include a shell, so commands like the
sh -c sleep 10
recommended here will not work. The./mvnw spring-boot:build-image
command suggested in this guide will use a base image that does not include a shell starting with Spring Boot 3.4.The text was updated successfully, but these errors were encountered: