Java Magazine, May/June 2019
ORACLE COM JAVAMAGAZINE MAY JUNE 2019 13 containers You can use any Kubernetes cluster available to you but use Minikube to follow along with this article Minikube runs a single node Kubernetes cluster inside a virtual machine on your local system giving you just enough to get started Follow the Minikube installation documentation if you dont have Minikube installed already Now that you have Docker ready to go and can spin up a local Kubernetes cluster with Minikube you will need an example microservice to work with Inspired by the Helidon article on microservices frameworks in the March April issue of Java Magazine I use Helidon in this tutorial to create a simple microservice Build a Basic Microservice Get started quickly with Helidon by creating a new project that uses the Helidon quickstart Maven archetype The following will get you up and running with a basic starter project mvn archetype generate DinteractiveMode false DarchetypeGroupId io helidon archetypes DarchetypeArtifactId helidon quickstart se DarchetypeVersion 101 DgroupId io helidon examples DartifactId helidon quickstart se Dpackage io helidon examples quickstart se Change into the helidon quickstart se directory and build the service cd helidon quickstart se mvn package In Kubernetes a service is an abstraction that defines a way to access a pod or a set of pods
You must have JavaScript enabled to view digital editions.