Version: 2.0.0 Target Environments: Development (Docker Compose), Staging/Production (Kubernetes)
- Runtime: Docker Engine 24+ / Kubernetes 1.25+
- Database: PostgreSQL 15+ (Managed RDS recommended for Prod)
- Message Broker: Redis 7+ (ElastiCache recommended for Prod)
- Reverse Proxy: Nginx / Traefik (Ingress Controller)
- Monitoring: Prometheus + Grafana Stack
Required secrets for all environments:
ENVIRONMENT=production
HYPERCODE_DB_URL=postgresql://user:pass@host:5432/hypercode
HYPERCODE_REDIS_URL=redis://host:6379/0
JWT_SECRET=super_secure_random_string_min_32_chars
OPENAI_API_KEY=sk-... (or Azure Endpoint)- Clone Repository:
git clone ... - Configure: Copy
.env.exampleto.env. - Build & Launch:
docker-compose --profile agents up -d --build
- Verify: Visit
http://localhost:8000/health->{"status": "healthy"}.
- Secrets Management:
- Create K8s Secrets for
HYPERCODE_DB_URL,JWT_SECRET, etc. - Do NOT commit
.envfiles.
- Create K8s Secrets for
- Apply Manifests:
kubectl apply -f k8s/policies/ # Network Policies first kubectl apply -f k8s/deployments/ kubectl apply -f k8s/services/ - Database Migration:
- Run as a Job or InitContainer:
(Note: Do not runpython -m prisma migrate deploy
prisma db pushin production; use migrations).
- Core API:
curl https://api.hypercode.ai/health(Expect 200 OK) - Agent Registry:
curl https://api.hypercode.ai/agents(Expect JSON list) - Crew Assembly: POST to
/crews/assemblewith a test manifest. - Turing Gym: Run a manual trigger of the "Hello World" test suite.
- Grafana Dashboards: Verify "Agent Health" and "Pool Status" panels are populating.
- AlertManager: Trigger a test alert (e.g., high CPU) to verify notification routing (Slack/PagerDuty).
- Database: Enable automated daily snapshots (RDS) + WAL archiving (PITR).
- Restore: Launch new RDS instance from snapshot -> Update K8s Secret -> Restart Pods.
- Redis: Enable AOF persistence for durability (if using Redis for critical queues).
If a deployment fails:
- Identify Issue: Check logs (
kubectl logs -l app=hypercode-core). - Revert Image: Update Deployment to previous tag.
kubectl set image deployment/hypercode-core hypercode-core=hypercode/core:v1.9.0 - Database Rollback: If schema changed, run the down-migration script (manually prepared).
- Cause: Redis connectivity issue or Agent container crashed.
- Fix: Check Redis logs. Verify Agent container status (
kubectl get pods).
- Cause: Warm Pool exhausted or Docker limit reached.
- Fix: Check Pool Manager logs (
WarmPoolManager). Scale up worker nodes.
- Cause: DB migration hasn't run or credentials invalid.
- Fix: Run
prisma migrate deploymanually. VerifyHYPERCODE_DB_URL.
For support, contact DevOps Team or Agent X.