Skip to main content

Overview

Neurenix provides native Kubernetes integration for deploying, scaling, and managing ML models in production. The framework includes support for:
  • Deployments: Scalable model serving with rolling updates
  • Pods: Individual container instances
  • Services: Load balancing and service discovery
  • ConfigMaps & Secrets: Configuration and credential management
  • Jobs: Batch inference and training

Prerequisites

  • Kubernetes cluster (1.19+)
  • kubectl configured
  • Docker images built and pushed to a registry

Quick Start

Deploy a Model

Expose via Service

Deployments

DeploymentConfig

Comprehensive deployment configuration:

Deployment Operations

Neurenix-Specific Deployment

Simplified deployment creation:

GPU Deployments

Pods

PodConfig

Pod Operations

Create Neurenix Pod

Services

ServiceConfig

Service Operations

Create Neurenix Service

Complete Production Deployment

YAML Export

Export configurations to YAML files:

Best Practices

  1. Resource Limits: Always set CPU and memory limits to prevent resource exhaustion
  2. Health Checks: Implement liveness and readiness probes for reliability
  3. Rolling Updates: Use rolling updates with maxUnavailable=0 for zero-downtime deployments
  4. Horizontal Pod Autoscaling: Configure HPA for automatic scaling based on metrics
  5. Pod Disruption Budgets: Protect availability during cluster maintenance
  6. Namespaces: Use separate namespaces for different environments
  7. Labels and Selectors: Use consistent labeling for service discovery and monitoring
  8. Secrets Management: Use Kubernetes secrets or external secret managers
  9. Monitoring: Integrate with Prometheus and Grafana for observability
  10. Logging: Use structured logging with centralized log aggregation

Troubleshooting

Check kubectl Installation

Debug Deployment Issues

Next Steps