-
Start minikube
- Start the dashboard =>
minikube dashboard
- Start the dashboard =>
-
Create a first µs using spring
- Add a route
- Setup Docker config
- Build and tag image then push it to your docker repo
- Deploy it via the dashboard
- Get the Deployment.yml for further usage
- Setup the service
kubectl expose deployment my-service --type=LoadBalancer --port=80 --target-port=8080
- Verify that everything works
- Add readinessProbe on actuator endpoint
-
Create a second µs following the previous setup
- Make it call the first one using a config variable
- Create the config map
kubectl create configmap client-config --from-file=<myapplicationprop.yml>
- Edit your Deployment.yml to use the configmap
- In your config map, use the service-name of the first application as the url to call
- It should work