Each microservice is configured through environment variables injected at runtime. This page documents every variable, its default value (sourced directly from each service’sDocumentation 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.
application.properties and configmap.yaml), and where it is used.
msvc-auth (port 9000)
msvc-auth has no database. Its application.properties sets only the application name and a hardcoded port of 9000. No environment variables are declared in its application.properties — the port is not overridable via a PORT variable.
msvc-usuarios (port 8001)
MySQL-backed user service and OAuth2 resource server. In Kubernetes, non-sensitive variables are read from themsvc-usuarios ConfigMap and sensitive credentials from the msvc-usuarios Secret.
| Variable | Description | Default |
|---|---|---|
PORT | HTTP server listen port | 8001 |
DB_HOT | MySQL host and port used in the JDBC URL | mysql8:3306 |
DB_DATABASE | MySQL database (schema) name | msvc_usuarios |
DB_USERNAME | MySQL login user | root |
DB_PASSWORD | MySQL login password | admin123 |
CURSOS_URL | Base host:port of msvc-cursos used by the OpenFeign client | msvc-cursos:8002 |
LB_AUTH_ISSUER_URI | OAuth2 issuer URI for JWT validation; set in the msvc-usuarios ConfigMap | http://192.168.49.2:30794 |
LB_AUTH_REDIRECT_URI | OAuth2 redirect URI; set in the msvc-usuarios ConfigMap | http://192.168.49.2:31415 |
LB_USUARIOS_URI | Base URL of msvc-usuarios; set in the msvc-usuarios ConfigMap | http://192.168.49.2:31415 |
ConfigMap: msvc-usuarios-config
msvc-usuarios also reads from a dedicated Spring Cloud Kubernetes ConfigMap named msvc-usuarios-config. This ConfigMap injects profile-specific config.texto values via spring.cloud.kubernetes.config.name=msvc-usuarios-config:
msvc-cursos (port 8002)
PostgreSQL-backed courses service. Non-sensitive variables come from themsvc-cursos ConfigMap and database credentials from the msvc-cursos Secret.
| Variable | Description | Default |
|---|---|---|
PORT | HTTP server listen port | 8002 |
DB_HOST | PostgreSQL host and port used in the JDBC URL | postgres-cursos:5432 |
DB_DATABASE | PostgreSQL database name | msvc_cursos |
DB_USERNAME | PostgreSQL login user | postgres |
DB_PASSWORD | PostgreSQL login password | postgres123 |
USUARIOS_URL | Base host:port of msvc-usuarios used by the OpenFeign client | msvc-usuarios:8001 |
msvc-gateway (port 8090)
msvc-gateway has no database and requires no credentials. It relies entirely on Spring Cloud Kubernetes service discovery to resolve lb://msvc-usuarios and lb://msvc-cursos URIs at runtime. Its application.properties declares only the application name and a hardcoded port of 8090. No environment variables are defined — the port is not overridable via a PORT variable.
Kubernetes ConfigMaps and Secrets
ConfigMap structure
Two ConfigMaps —msvc-usuarios and msvc-cursos — hold all non-sensitive variables. They are created from configmap.yaml before the microservice Deployments are applied:
Secret structure
Database credentials are stored as Base64-encoded Opaque Secrets insecret.yaml and mounted into deployments via secretKeyRef: