A simple example
In this section, we will deploy a simple Jakarta EE application to a local Kubernetes cluster To follow along, you need to have Kubernetes installed. The easiest way to install Kubernetes on your local machine is as follows:
- Minikube (https://minikube.sigs.k8s.io/docs/start/)
- KinD (https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
- Docker Desktop (https://docs.docker.com/desktop/)
Following the link in any of the preceding bullets will bring you to the installation instructions for your tool of choice. In this example, we will use Minikube.
The application we will deploy is a simple Jakarta EE REST API. Once you hit the endpoint at http://localhost:8080/api/greet
, it will welcome you with the famous greeting, “Hello, World!” If you would like a more personal approach, you can specify your name with a request parameter, such as http://localhost:8080/api/greet?name=Packt. The application will respond with "
Hello...