Ensure minikube is running else run minikube start
To deploy everything in Minikube:
- Add hosts
make hosts-
Build and Deploy:
make up
This command builds Docker images and installs all components (PostgreSQL, Grafana, Traefik, and the S-Shop system) via Helm.
-
Start API Proxy:
make run
Keep this command running in a separate terminal. It enables access via http://arch.homework:8080
-
Verify:
make status
The API is exposed at http://arch.homework:8080 (ensure make up added the entry to your /etc/hosts).
- Health Check:
curl http://arch.homework:8080/health - Auth Endpoint:
curl http://arch.homework:8080/auth - User API:
curl http://arch.homework:8080/user
- Prometheus: Run
make prometheus-runand open http://localhost:9090 - Grafana: Run
make grafana-runand open http://localhost:3000 (User:admin, get password viamake grafana-pass)
services/: Source code for microservices.deployment/helm/: Helm charts and values for infrastructure and application.
k6 run load_testing/users.jsnewman run docs/postman.json --verbose