MicroProfile example using Helidon
It´s a simple news feed where you post news and retrieve them.
mvn package
java -jar target/mp-newsfeed.jar
curl -X GET https://localhost:8080/greet
{"message":"Hello World!"}
curl -X GET https://localhost:8080/greet/Joe
{"message":"Hello Joe!"}
curl -X PUT https://localhost:8080/greet/greeting/Hola
{"gretting":"Hola"}
curl -X GET https://localhost:8080/greet/Jose
{"message":"Hola Jose!"}
docker build -t mp-newsfeed target
docker run --rm -p 8080:8080 mp-newsfeed:latest
Exercise the application as described above
kubectl cluster-info # Verify which cluster
kubectl get pods # Verify connectivity to cluster
kubectl create -f target/app.yaml # Deploy application
kubectl get service mp-newsfeed # Verify deployed service