Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.61 KB

File metadata and controls

65 lines (48 loc) · 1.61 KB

Spring Boot Admin

This is a Spring Boot Admin instance using spring-cloud-starter-kubernetes-discoveryclient for service discovery. Therefore, it needs a running spring-cloud-kubernetes-discoveryserver. For this reason, the SBA server does not need kubernetes api permissions on kubernetes itself and uses the spring-boot-app helmchart.

Make sure discoveryserver is running before deploying this app.

Build & Install Script

You can run the whole build and installation with the following script or follow the step-by-step guide below.

chmod u+x buildAndInstall.sh
./buildAndInstall.sh

Step-by-step build

Build App

mvn clean install

Build Docker Image

docker build --tag spring-boot-admin:discocli .

Install App

We use the standard "app" helm chart here and NOT the "admin" helm chart as we do not need the k8s api access with this setup. The discoveryserver has the permissions and is providing the apps via rest api.

helm upgrade --install spring-boot-admin-discoveryclient ../../helm-charts/spring-boot-app -f deployment/values.yml

Check deployment

kubectl get pods -o wide
kubectl get services -o wide
kubectl get ingress

Uninstall

helm uninstall spring-boot-admin-discoveryclient

URI

Access Actuator

kubectl get pods
kubectl port-forward <pod-name> 8081:8081

URI