Skip to main content

Pilot Customer Infrastructure Setup Guide

Document Version: 1.0.0 Created: January 18, 2026 Task ID: N.2.1 (CP-21) Author: Infrastructure Team


Overview

This document describes the pilot customer infrastructure deployed as part of the CODITECT pilot program. The infrastructure provides an isolated namespace with appropriate resource quotas, network policies, and configurations for pilot customer evaluation.

Architecture

┌─────────────────────────────────────────────────────────────────┐
│ GKE Cluster: coditect-citus-dev │
│ Region: us-central1 │
├─────────────────────────────────────────────────────────────────┤
│ ┌─────────────┐ ┌───────────────┐ ┌────────────────────┐ │
│ │ coditect- │ │ coditect- │ │ coditect-pilot │ │
│ │ dev │ │ staging │ │ (NEW) │ │
│ │ │ │ │ │ │ │
│ │ 8 CPU │ │ 16 CPU │ │ 12 CPU │ │
│ │ 16Gi RAM │ │ 32Gi RAM │ │ 24Gi RAM │ │
│ │ 30 pods │ │ 50 pods │ │ 40 pods │ │
│ └─────────────┘ └───────────────┘ └────────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ coditect-production │ │
│ │ 32 CPU, 64Gi RAM, 100 pods │ │
│ └─────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘

Namespace Details

PropertyValue
Namespacecoditect-pilot
Environmentpilot
Customer Typepilot
SLA Tierpilot
MonitoringEnabled

Resource Allocations

Compute Quota

ResourcePilotDevStagingProduction
CPU Requests1281632
Memory Requests24Gi16Gi32Gi64Gi
CPU Limits24163264
Memory Limits48Gi32Gi64Gi128Gi
Max Pods403050100
Storage150Gi100Gi200Gi500Gi
PVCs12101525

Object Quota

Object TypePilot Limit
Deployments12
StatefulSets6
Services18
ConfigMaps25
Secrets25
Jobs12
CronJobs6

Container Limit Ranges

TypeMinDefault RequestDefault LimitMax
Container CPU25m200m750m3
Container Memory48Mi192Mi768Mi6Gi
Pod CPU---6
Pod Memory---12Gi
PVC Storage1Gi--35Gi

Network Policies

The pilot namespace implements defense-in-depth network security:

Default Deny

  • All ingress traffic denied by default
  • All egress traffic denied by default

Allowed Traffic

PolicySourceDestinationPorts
django-to-cloudsqldjango-backend10.0.16.0/24TCP/5432
django-to-redisdjango-backend10.0.0.0/20TCP/6379
celery-to-cloudsqlcelery-worker10.0.16.0/24TCP/5432
celery-to-rediscelery-worker10.0.0.0/20TCP/6379
allow-ingress-to-djangoLB health checksdjango-backendTCP/8000
allow-dns-accessAll podskube-system/kube-dnsUDP+TCP/53
allow-internet-egressinternet-access=trueExternalTCP/80,443
allow-prometheus-scrapingprometheusprometheus.io/scrape=trueTCP/9090

Configuration

Environment ConfigMap

Name: pilot-environment-config
Data:
ENVIRONMENT: pilot
DEBUG: false
LOG_LEVEL: INFO
PILOT_MODE: true
TELEMETRY_ENABLED: true
API_BASE_URL: https://api.coditect.ai
AUTH_BASE_URL: https://auth.coditect.ai
MAX_CONCURRENT_SESSIONS: 5
SESSION_TIMEOUT_MINUTES: 60

Deployment Commands

Apply Pilot Infrastructure

cd kubernetes/overlays/pilot
kubectl apply -k .

Verify Deployment

# Check namespace
kubectl get ns coditect-pilot

# Check all resources
kubectl get all,resourcequota,limitrange,networkpolicy,configmap -n coditect-pilot

# Describe quotas
kubectl describe resourcequota -n coditect-pilot

Deploy Applications to Pilot

# Deploy Django backend
kubectl apply -f deployments/django-backend.yaml -n coditect-pilot

# Deploy with pilot image tag
kubectl set image deployment/django-backend \
django=us-central1-docker.pkg.dev/coditect-citus-prod/coditect-docker/django-backend:pilot-stable \
-n coditect-pilot

Monitoring

Prometheus Integration

Add these labels to enable metrics scraping:

metadata:
labels:
prometheus.io/scrape: "true"
AlertConditionSeverity
PilotQuotaHighCPU/Memory > 80%warning
PilotPodCountPods > 35warning
PilotStorageHighStorage > 120Giwarning

Pilot Customer Onboarding

  1. Create namespace (already done)
  2. Deploy applications using pilot-stable image tags
  3. Configure DNS for pilot customer subdomain
  4. Create service account for pilot customer access
  5. Share access credentials via secure channel
  6. Enable monitoring dashboards

Cleanup

To remove pilot infrastructure (requires approval):

# WARNING: This will delete all resources in pilot namespace
kubectl delete namespace coditect-pilot

Status: Deployed Last Applied: January 18, 2026 Cluster: coditect-citus-dev (us-central1)