Kubernetes Deployment
Guide for deploying NCN Network on Kubernetes for production scale.
Prerequisites
Kubernetes cluster (1.25+)
kubectl configured
Helm 3.x installed
Container registry access
Architecture on Kubernetes
┌─────────────────────────────────────────────────────────────────────────────┐
│ Kubernetes Cluster │
│ │
│ ┌───────────────────────────────────────────────────────────────────┐ │
│ │ Ingress │ │
│ │ (nginx/traefik) │ │
│ └───────────────────────────────┬───────────────────────────────────┘ │
│ │ │
│ ┌───────────────────────────────▼───────────────────────────────────┐ │
│ │ Gateway Service │ │
│ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │
│ │ │ Gateway Pod │ │ Gateway Pod │ │ Gateway Pod │ │ │
│ │ │ (replica) │ │ (replica) │ │ (replica) │ │ │
│ │ └─────────────┘ └─────────────┘ └─────────────┘ │ │
│ └───────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌───────────────────────────────────────────────────────────────────┐ │
│ │ Registry StatefulSet │ │
│ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │
│ │ │Registry Pod │ │Registry Pod │ │Registry Pod │ │ │
│ │ │ + PVC │ │ + PVC │ │ + PVC │ │ │
│ │ └─────────────┘ └─────────────┘ └─────────────┘ │ │
│ └───────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌───────────────────────────────────────────────────────────────────┐ │
│ │ Compute DaemonSet/Deployment │ │
│ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │
│ │ │Compute Pod │ │Compute Pod │ │Compute Pod │ │ │
│ │ │ (GPU) │ │ (GPU) │ │ (CPU) │ │ │
│ │ └─────────────┘ └─────────────┘ └─────────────┘ │ │
│ └───────────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘Namespace Setup
Secrets
ConfigMaps
P2P Registry StatefulSet
Gateway Deployment
Compute Node Deployment
Ingress
Horizontal Pod Autoscaler
Deploy All Resources
Monitoring
Prometheus ServiceMonitor
Helm Chart (Alternative)
If a Helm chart is available:
Troubleshooting
View Logs
Exec into Pod
Check Events
Next Steps
Production Deployment - Production hardening
Monitoring - Set up monitoring
Last updated
