All services in this project expose Spring Boot Actuator endpoints out of the box. BothDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Miguel-Rodriguez15/msvc/llms.txt
Use this file to discover all available pages before exploring further.
msvc-usuarios and msvc-cursos enable Kubernetes-native liveness and readiness probes so the control plane can accurately track pod lifecycle, and they expose full health component detail so monitoring tools can surface database connectivity, disk space, and application state at a glance.
Actuator Configuration
The following properties are set in bothmsvc-usuarios/src/main/resources/application.properties and msvc-cursos/src/main/resources/application.properties:
exposure.include=*— exposes every available Actuator endpoint over HTTP.show-details=always— returns full component-level detail in/actuator/healthresponses without requiring authentication.probes.enabled=true— activates the dedicated/actuator/health/livenessand/actuator/health/readinesssub-paths.livenessstate.enabled/readinessstate.enabled— registers Spring’s internal liveness and readiness health indicators so Kubernetes probes map directly to the application’s lifecycle state.
Available Endpoints
All endpoints are served under the/actuator base path on each service’s port.
| Endpoint | Description |
|---|---|
/actuator/health | Overall health status with full component details |
/actuator/health/liveness | Kubernetes liveness probe — is the application process alive? |
/actuator/health/readiness | Kubernetes readiness probe — is the application ready to serve traffic? |
/actuator/info | Application metadata (name, version, build info) |
/actuator/metrics | Micrometer metrics catalog (JVM, HTTP server, datasource, etc.) |
/actuator/env | All environment variables and resolved configuration properties |
/actuator/beans | Every Spring bean registered in the application context |
/actuator/mappings | All HTTP request mappings with handler details |
Example Health Response
A typical response fromGET /actuator/health when all components are healthy:
msvc-cursos reports "database": "PostgreSQL" in the db component details since it uses PostgreSQL 14 as its backing store.
Kubernetes Probes
Kubernetes uses the liveness probe to decide whether to restart a pod and the readiness probe to decide whether to route traffic to it. The recommended probe configuration for both microservices is:8002 for msvc-cursos. The initialDelaySeconds gives Spring Boot time to complete startup — including datasource connection pool initialization and JPA schema generation — before the first probe is evaluated.
The probe configuration above is recommended reference configuration. Always check the actual Kubernetes manifest files (
deployment-usuarios.yaml, deployment-cursos.yaml) in the repository for the current values applied to the running cluster.Quick Health Check
Use thesecurl commands to verify service health from a local machine or from within the cluster:
200 OK with {"status":"UP"}. A 503 Service Unavailable with {"status":"DOWN"} or {"status":"OUT_OF_SERVICE"} indicates a component failure — check the components section for which indicator is reporting the problem.
Metrics
Actuator exposes a Micrometer metrics registry at/actuator/metrics. Each metric can be queried individually to retrieve its current value, tags, and measurement type.