Deploying the task manager to minikube
Eclipse JKube’s Kubernetes Maven Plugin includes another goal that allows you to deploy the application into Kubernetes from the generated YAML files without the need for other tools such as kubectl. Let’s do this by executing the following command in the same terminal session we’ve been using so far:
./mvnw k8s:apply
The Maven execution should complete successfully, and we should be able to see Eclipse JKube’s log messages related to the Kubernetes object creations as follows:
Figure 12.9 – A screenshot of the result of the Maven k8s:apply goal execution
The application should be ready and we should be able to navigate to the exposed URL, in our case http://task-manager.192.168.49.2.nip.io, and test our application as follows:
Figure 12.10 – A screenshot of a browser pointing to http://task-manager.192.168.49.2.nip.io/login
Once we’ve finished...