Deployment Configuration
The backend is deployed as a Kubernetes deployment with auto-scaling capabilities.Service Configuration
The service exposes the backend on port 80, routing traffic to container port 8080.Horizontal Pod Autoscaler
The backend automatically scales based on CPU utilization.Environment Variables
The backend service requires the following environment variables from secrets:| Variable | Description | Source |
|---|---|---|
SERVER_ADDR | Server listen address | Secret: exchange-router-secret |
DATABASE_URL | PostgreSQL connection URL | Secret: exchange-router-secret |
REDIS_URL | Redis connection URL | Secret: exchange-router-secret |
Resource Limits
| Resource | Request | Limit |
|---|---|---|
| CPU | 300m | 2000m |
| Memory | - | - |
Scaling Configuration
- Min Replicas: 1
- Max Replicas: 2
- Scaling Metric: CPU utilization at 95%
- Target Port: 8080
- Service Port: 80
Secrets
Secrets are managed using Sealed Secrets (Bitnami). The encrypted secret includes:- Database connection URL
- Redis connection URL
- Server address configuration
sealed-secret.yml in the source repository for the encrypted values.
