/spring-actuator-docker

POC: Spring with Actuator and Docker and Kubernetes

Primary LanguageJavaMIT LicenseMIT

Docker - Spring Actuator

This is a simple POC for:

  • docker

  • docker-compose

  • kubernetes

  • spring actuator

Install and run as Maven Project

Install and run in Docker

Kubernetes

Requirements:

  • A version of VirtualBox

  • A version of kubectl

    • brew install kubectl

    • brew cask install minikube

    • minikube start

Install:

kubectl apply -f k8s

Hints:

kubectl get deployments

kubectl get services

kubectl get pods

kubectl describe pods

kubectl logs <pod-name>

Ingress:

minikube addons enable ingress

minikube dashboard

Results

When starting the docker-compose you should access to the different server and clients.

Rest request:

Also accessing to Actuator: http://127.0.0.1:8888/#/wallboard

actuator wallboard

Shows you tree running services, and one client has currently 2 running instances and for the multi step build a separate.

and you can click on the services to get more details like:

actuator details