A simple microservice for orders management
- SDKMAN (Optional)
- OpenJDK v17
- Gradle v7.4.2
- PostgreSQL v14 (Optional)
Minikube setup
- Start minikube
minikube start
- Enable nginx ingress (1)
minikube addons enable ingress
Verify that the NGINX Ingress controller is running
v1.19 or later | v1.18.1 or earlier |
---|---|
kubectl get pods -n ingress-nginx |
kubectl get pods -n kube-system |
Expected output
NAME READY STATUS RESTARTS AGE
ingress-nginx-admission-create-g9g49 0/1 Completed 0 11m
ingress-nginx-admission-patch-rqp78 0/1 Completed 1 11m
ingress-nginx-controller-59b45fb494-26npt 1/1 Running 0
- Start a minikube tunnel (2)
minikube tunnel
Run the application
- Run all services
./deploy.sh
- Get the IP address
kubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
jdbc-ingress nginx * 123.456.78.9 80 62s
------------
- Check the enpoints