 Okay, another feature that is available in Spring Boot 2.3 or higher is the ability to handle a graceful shutdown. So what we don't want Kubernetes to do is terminate our application while it's still processing stuff. So we want to give that a little bit of time to complete properly. So again, very similar to the liveness and the readiness probes, we need to set a environment variable to enable this and then also configure Kubernetes to utilize that. So let's go in and we are going to edit the deployment descriptor again. And we'll go all the way down to the bottom here. And now what we want to do is come in here and say name. And this time it is going to be server and value. You're going to say graceful. So this is a Spring Boot property saying that we are going to go ahead and try to shut down gracefully. Allow any in-flight transactions to complete. So this is telling Spring Boot to go ahead and do this. Now what we need to do is tell Kubernetes to shut this down gracefully. So we can come in here and we want to say the life cycle property and we want to say pre-stop. And we want to give it a command to execute and give it a command like so. And this is going to be a shell command, very simple command. We're just going to say sleep for 10 seconds. Be sure to terminate that and then close it out. Double check this. That looks proper. And we'll go ahead and write this. And again, we can come in and say apply our deployment descriptor. We can say that has been updated. And we can see again, we have two services running. So we did that pretty quick. The second one is terminating. So you can catch the logs on this one as it's starting up. It does start up pretty quick. We have a fairly light Spring Boot application there. And that is already up and running. And unfortunately, I don't have a good way to demonstrate that. It's actually going to work. We could write some logging into Spring Boot into the Spring Bean lifecycle to show termination events, but I don't have a handy way to prove that we are getting a graceful shutdown. But just to recap for the configuration of this, what we wanted to do here, we added in this server shutdown of graceful. So that is going to tell Spring Boot to gracefully shutdown. And it does give a lifecycle. I think the default is 30 seconds for the lifecycle. So that's a little bit of a mismatch there. You can override that, refer to the Spring Boot documentation on that. This is a new feature of Spring Boot 2.3. But the primary thing is we are telling Spring Boot to do a graceful shutdown. And then on these three lines here, we are telling Kubernetes to give the application effectively 10 seconds to complete its shutdown activities.