A production-style AI inference platform demonstrating modern model serving, inference infrastructure, and distributed systems using Kubernetes, Triton Inference Server, Redis, Prometheus, and Grafana.
Built as part of an AI Infrastructure Engineer transition roadmap to explore production AI serving patterns, observability, autoscaling, and model rollout strategies.
- AI Inference Platform
- Kubernetes & Cloud-Native Infrastructure
- Triton Inference Server
- Inference-Aware Autoscaling
- Production Observability
- Model Versioning & Rollouts
- Queue-based asynchronous inference
- Multi-tenant worker scheduling
- Triton Inference Server integration
- Dynamic batching
- Kubernetes-native deployment
- Inference-aware autoscaling (KEDA & HPA)
- Model versioning
- Canary deployment
- Shadow traffic validation
- Production observability
Client
│
▼
FastAPI API
│
▼
Redis Request Queue
│
▼
Worker Pool (QoS)
│
▼
Triton Inference Server
│
▼
ML Model Repository
│
▼
Prometheus + Grafana
| Category | Technologies |
|---|---|
| Language | Python |
| API | FastAPI, Pydantic |
| Machine Learning | Scikit-learn (IsolationForest) |
| Inference Serving | Triton Inference Server (Python Backend) |
| Model Serving | Dynamic Batching, Model Versioning, Canary Deployment, Shadow Traffic |
| Messaging | Redis |
| Worker Processing | Asynchronous Worker Pool, QoS Scheduling |
| Containerization | Docker |
| Orchestration | Kubernetes |
| Autoscaling | KEDA, Horizontal Pod Autoscaler (HPA) |
| Observability | Prometheus, Grafana |
| Infrastructure Metrics | cAdvisor, kube-state-metrics, NGINX Exporter |
| Networking | NGINX, Kubernetes Services |
| Configuration | Kubernetes ConfigMaps |
| Testing | Custom concurrent load-testing scripts |
Build the application image:
docker build -t anomaly-inference-system:latest .Build the Triton image:
docker build -t triton:latest ./tritonIf you are already inside the
triton/directory, run:docker build -t triton:latest .
Apply all Kubernetes manifests:
kubectl apply -f k8s/Restart the main deployments:
kubectl rollout restart deployment triton
kubectl rollout restart deployment anomaly-inference-system
kubectl rollout restart deployment shared-worker
kubectl rollout restart deployment vip-workerFor additional deployable services, check the manifests under:
k8s/
Forward Prometheus:
kubectl port-forward svc/prometheus-service 9090:9090Open Prometheus:
http://localhost:9090
Forward Grafana:
kubectl port-forward svc/grafana-service 3000:3000Open Grafana:
http://localhost:3000
Open the FastAPI Swagger docs:
http://localhost/docs
| Document | Description |
|---|---|
01-architecture.md |
Platform architecture and request flow |
02-deployment.md |
Docker and Kubernetes deployment |
03-observability.md |
Metrics, monitoring, and operational visibility |
04-autoscaling.md |
HPA, KEDA, and inference-aware autoscaling |
05-triton-serving.md |
Triton integration and dynamic batching |
06-model-rollout.md |
Model versioning, canary deployment, and shadow traffic |
07-dashboards.md |
Grafana dashboards and platform validation |
Anomaly-Inference-System/
│
├── app/ # API, workers, and shared components
├── triton/ # Triton model repository
├── k8s/ # Kubernetes manifests
├── dashboards/ # Grafana dashboards
├── docs/ # Engineering documentation
├── scripts/ # Model training and utilities
├── training_models/ # Training artifacts
│
├── README.md
├── Dockerfile
├── docker-compose.yaml
└── requirements.txt