Commit Graph

9 Commits

Author SHA1 Message Date
Andrés Eduardo García Márquez aeff93f7c6 refactor(k3s): rename namespace from student-enrollment to academia
Deploy to k3s / deploy (push) Failing after 25s Details
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 16:44:22 -05:00
Andrés Eduardo García Márquez fa607d3fc4 fix(k3s): update image names and deployment docs
Deploy to k3s / deploy (push) Failing after 25s Details
- Rename images from academia-* to student-* for consistency
- Update DEPLOYMENT.md with latest deployment procedures

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 16:40:57 -05:00
Andrés Eduardo García Márquez a9e4de63c9 ci: optimize deployment workflow for k3s
Deploy to k3s / deploy (push) Failing after 27s Details
- Single job instead of 3 (no artifact overhead)
- Build directly on k3s node (avoids image transfer)
- Parallel Docker builds with BuildKit
- Auto-create namespace if missing
- Automatic rollback on failure
- Health check via domain

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 13:34:38 -05:00
Andrés Eduardo García Márquez 17706676d5 fix(docker): alpine compatibility and k3s deployment fixes
Build and Deploy to k3s / build-api (push) Failing after 32s Details
Build and Deploy to k3s / build-frontend (push) Failing after 30s Details
Build and Deploy to k3s / deploy (push) Has been skipped Details
- Add linux-musl-x64 runtime identifier for Alpine builds
- Install ICU libs for SQL Server globalization support
- Fix nginx upstream to use k8s service name (student-api)
- Sync package-lock.json with package.json

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 11:53:28 -05:00
Andrés Eduardo García Márquez 1687efbc7e fix(docker): update to .NET 10 SDK for k3s deployment
- Update Dockerfile.api to use dotnet/sdk:10.0-alpine
- Update runtime to aspnet:10.0-alpine
- Add deploy-k3s.sh script for manual deployments

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 11:30:24 -05:00
Andrés Eduardo García Márquez ff7f43b053 feat: add CI/CD pipeline, password recovery, and QA improvements
- Add Gitea Actions workflow for automated k3s deployment
- Implement password recovery with recovery codes (no email needed)
- Fix unenroll mutation (missing studentId parameter)
- Fix dashboard handling for expired sessions
- Add optimized Docker builds with caching
- Add k3s all-in-one deployment manifest
- Add QA test report and recommendations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 10:49:32 -05:00
Andrés Eduardo García Márquez ca2edeca86 fix(k8s): optimize API and frontend resource configuration
API deployment:
- Add .NET GC optimization flags (gcServer=0, GCConserveMemory=9)
- Increase memory requests/limits for stability
- Add GCHeapCount and gcConcurrent settings

Frontend deployment:
- Adjust resource limits for better stability
- Update probe configurations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 00:01:49 -05:00
Andrés Eduardo García Márquez 32f733f22e fix(k8s): increase SQL Server memory to prevent OOMKilled
- Increase memory limit from 1Gi to 1.5Gi
- Increase MSSQL_MEMORY_LIMIT_MB from 768 to 1024
- Increase liveness probe initialDelaySeconds to 120
- Increase failureThreshold to 5 for more tolerance
- Increase readiness probe timeouts

Fixes DEF-001: SQL Server was crashing with Exit Code 137 (OOMKilled)
due to insufficient memory allocation for SQL Server 2022 Express.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 00:01:39 -05:00
Andrés Eduardo García Márquez 9f11aab2a8 feat(deploy): add Docker and Kubernetes deployment
Docker:
- Multi-stage Dockerfile for API (.NET 10)
- Multi-stage Dockerfile for frontend (Angular + Nginx)
- docker-compose.yml with resource optimization
- Nginx reverse proxy configuration
- Health checks for all services

Kubernetes (k3s):
- Namespace and ConfigMap
- SQL Server StatefulSet with PVC
- API Deployment with HPA
- Frontend Deployment
- Services and Ingress
- Network policies for security
- Secrets management

Resource optimization:
- SQL Server Express with 1GB RAM limit
- API with 512MB limit
- Frontend with 128MB limit

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 23:00:41 -05:00