This is a simple POC for:
-
docker
-
docker-compose
-
kubernetes
-
spring actuator
-
Download the source file from GITHUB: git clone https://github.com/bindstone/docker-actuator.git
-
Build it with: mvn clean install
-
You can now run the SpringBoot Server locally with the profile DEV.
-
Download the source file from GITHUB: git clone https://github.com/bindstone/docker-actuator.git
-
Run it with: docker-compose --build up
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
When starting the docker-compose you should access to the different server and clients.
Rest request:
-
Server: http://127.0.0.1:8888/hello
-
Client: http://127.0.0.1:8080/hello
Also accessing to Actuator: http://127.0.0.1:8888/#/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:
Docker Images: