Our previous blog post introduced Helidon 2 as a modern set of Libraries for writing Microservices and Cloud-Native apps. So far, we’ve explored how to create a Microservice that can execute on top of Virtual Machines, regardless if deployed on-premises or in a cloud environment.
Helidon provides native support to Cloud-Native applications. Cloud-Native incorporates the following core architectural principles: Microservices, Containers, DevOps, and CI/CD.
This post will complement our introduction to Helidon, and provide a quick introduction to Cloud-Native applications with Helidon 2.
Once again, please note that this quick guide is not supposed to replace the introductory guide provided by the official documentation. It’s just a quick-start guide for impatient developers. So without further ado, let’s get started!
To demonstrate the use of Helidon on a Cloud-Native scenario, we’ll have to work with Kubernetes.
Starting with version 18.06, Docker for Desktop includes Kubernetes support, so we’ll use it, and its installation is a straightforward task.
After its installation, we’ll have to enable Kubernetes support.
Open Docker Desktop, navigate to Setting (gear icon at the top-right corner)-> Kubernetes (left-hand side), then select the Enable Kubernetes checkbox and click Apply and Restart at the bottom-right corner.
You’ll see a notification message about the Kubernetes cluster installation process. Click Install.
Then execute the commands below to configure Docker Desktop as the right context for Kubernetes:
kubectl config use-context docker-for-desktop
To confirm that you have it switched properly, right-click the icon for Docker Desktop, then…