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
Addressing GH issue 8. The prestop command is not required.
As of Spring Boot 3.4 the build-image command will not include
a shell that will also fail on deployment.
Copy file name to clipboardExpand all lines: README.adoc
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,13 +212,12 @@ Before moving on be sure to stop the `port-forward` command above.
212
212
The solution to this section is defined in `k8s-artifacts/best_practice/*`.
213
213
214
214
Our application runs on Kubernetes, but, in order for our application to run optimally, we recommend implementing
215
-
several best practices:
215
+
the best practices:
216
216
217
217
1. https://docs.spring.io/spring-boot/reference/actuator/endpoints.html#actuator.endpoints.kubernetes-probes[+++Add readiness and liveness probes+++]
218
-
2. https://docs.spring.io/spring-boot/how-to/deployment/cloud.html#howto.deployment.cloud.kubernetes.container-lifecycle[+++Wait for container lifecycle processes to finish+++]
To address the third best practice, we need to add a property to our application configuration. Since we run our
229
+
This will address the first best practice.
230
+
Additionally, we need to add a property to our application configuration. Since we run our
233
231
application on Kubernetes, we can take advantage of https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/[+++Kubernetes ConfigMaps+++]
234
232
to externalize this property, as a good cloud developer should. We now take a look at how to do that.
0 commit comments