LAB AE07

Deploy y monitorización

Configura Docker, health check, alertas básicas y un plan de rollout con feature flag.

1

Dockerfile

Crea un Dockerfile para tu agente.

dockerfile
💡 HEALTHCHECK es obligatorio. Sin él, Docker no sabe si tu agente está vivo.
2

Health endpoint

Añade /health a tu FastAPI.

python
💡 El health check es lo primero que monitorización verifica.
3

Feature flag para rollout

Implementa rollout gradual: 5% → 25% → 50% → 100%.

python
💡 Rollback inmediato: ROLLOUT_PCT=0. Sin deploy, sin downtime.
4

Alertas básicas

Define las 4 alertas esenciales.

yaml
💡 SecurityViolation con data_leakage siempre es CRITICAL con acción inmediata.

Checklist de completación