Allows to run Spring Boot Admin and two sample apps (hello world, health simulator) in kubernetes.
There are 3 instances of Spring Boot Admin available. All three use the discovery mechanism to find the apps to monitor. There is no self registration used. One SBA is using the spring cloud kubernetes-client, the second one the spring cloud kubernetes-fabric8 and the third one is using the spring cloud kubernetes discovery server to get all running services instead of using kubernetes discovery directly.
This Readme will guide you through all setup steps for the infrastructure.
- From the Docker Dashboard, select the Settings.
- Select Kubernetes from the left sidebar.
- Next to Enable Kubernetes, select the checkbox.
- Select Apply & Restart to save the settings and then click Install to confirm. This instantiates images required to run the Kubernetes server as containers, and installs the
/usr/local/bin/kubectl
command on your machine.
- https://docs.docker.com/desktop/kubernetes/
- https://kubernetes.io/docs/reference/kubectl/cheatsheet/
kubectl config get-contexts
kubectl config use-context docker-desktop
brew install helm
helm version
You can run the whole build and installation for all apps with the following script or follow the step-by-step guide below.
chmod u+x buildAndInstallAll.sh
./buildAndInstallAll.sh
http://localhost/spring-boot-admin-kubernetes
http://localhost/spring-boot-admin-fabric8
http://localhost/spring-boot-admin-discoveryclient
- ./apps/hello-world/README.md
- ./apps/spring-boot-admin-kubernetes/README.md
- ./apps/spring-boot-admin-fabric8/README.md
- ./apps/spring-boot-admin-discoveryclient/README.md
- ./apps/health-simulator/README.md
chmod u+x uninstall.sh
./uninstall.sh
You can install any Spring Boot App using the helm chart (your app must be available as docker image).
helm upgrade --install <your-app-name> helm-charts/spring-boot-app -f <path-to-your>/values.yaml
OR
helm upgrade --install <your-app-name> helm-charts/spring-boot-app --set name=<your-spring-app> --set deployment.image=<yourImage>
helm uninstall <your-app-name>