Once you are done with your application development and testing, you need to deploy the applications into your production server to serve the application users. Spring Boot applications can be deployed through an array of deployment strategies. Based on the application’s scalability, availability, and resilience requirements, you can decide on your application deployment strategy.
In this chapter, we’ll introduce you to various approaches to deploy the Spring Boot application. You’ll learn traditional deployment techniques, such as running the application as an executable JAR or deploying it into an application server as a WAR. We’ll then explore deploying into Pivotal Cloud Foundry and Heroku. Later, we’ll also learn how to run Spring Boot applications as a Docker container and deploy them into a Kubernetes cluster. Finally, we’ll show how to deploy the application into Red Hat OpenShift. Let’s get started.