Setting Up Dockerfile and Kubernetes Objects for Cloud Deployment
We spent the previous chapters exploring some of the amazing features that Quarkus provides to help us create cloud-native applications. Going even further, we also learned how to integrate Quarkus into a hexagonal system.
Now, we need to prepare the hexagonal system so that it can be deployed in cloud environments. Docker and Kubernetes are the leading technologies that dominate the cloud scene nowadays. If your application is prepared to run on these technologies, you’re safe to make it run on most cloud providers.
So, in this chapter, we’ll learn how to wrap the hexagonal system in a Docker image and run it on a Kubernetes cluster. For Docker images, we’ll explore two techniques for creating such images: one that relies on an executable .jar
and another that uses a native executable. We’ll also learn how to deploy the hexagonal system in a local minikube-based Kubernetes cluster.