Deployment & Ops5 min read

Kubernetes (Helm) & Air-Gapped Deployment

Production Kubernetes Helm deployment on EKS, AKS, GKE, or air-gapped OpenShift clusters.

Secrets, ConfigMaps & Helm Install

EKS · AKS · GKE · OpenShift
  • Zero .env file dependency — inject every config via Kubernetes Secrets and ConfigMaps.
  • Mount customer.lic and public_key.pem read-only via a dedicated ConfigMap.
  • Zero-downtime license renewals work live via POST /api/v1/system/license or updating the mounted ConfigMap.
Kubernetes Helm Workload Topology
HPA 2-8 pods
Deployment: atreyamd-api
Stateless API + OIDC ingress
Up to lic cap
Deployment: atreyamd-worker
Advisory-lock safe migrations
Read-only mount
ConfigMap: atreyamd-license
customer.lic + public_key.pem
KMS encrypted
Secret: atreyamd-vpc-secrets
DB, Redis & BYO-LLM keys
kubectl & Helm Production Install
bash
# 1. Create VPC Secrets (DB, Redis, BYO-LLM key, optional bootstrap API keys)
kubectl create secret generic atreyamd-vpc-secrets \
  --from-literal=ATREYAMD_DATABASE_URL='postgresql+asyncpg://atreyamd:secret@pg:5432/atreyamd' \
  --from-literal=ATREYAMD_REDIS_URL='redis://redis:6379/0' \
  --from-literal=ATREYAMD_LLM_API_KEY='your-vpc-llm-key' \
  --from-literal=ATREYAMD_API_KEYS='admin:strong-admin-token,coder:strong-coder-token'

# 2. Mount Offline Ed25519 License & Embedded Vendor Public Key
kubectl create configmap atreyamd-license \
  --from-file=customer.lic=./keys/customer.lic \
  --from-file=public_key.pem=./keys/public_key.pem

# 3. Deploy / Upgrade via Helm
helm upgrade --install atreyamd ./deploy/helm/atreyamd -f custom-values.yaml

Air-Gapped & HIPAA Hardening Checklist

  • Set ATREYAMD_WEB_SEARCH_ENABLED=false to guarantee zero outbound policy lookups.
  • Set ATREYAMD_AUTH_ENABLED=true or front with OAuth2-Proxy / Keycloak OIDC (X-Forwarded-User, X-Forwarded-Role).
  • Enable ATREYAMD_PHI_SCRUB_BEFORE_LLM=true whenever calling external BAA cloud LLM APIs.
  • Mirror container images and FY2027 .csv.gz + .manifest.json bundles into your internal registry/MinIO.
  • Encrypt PostgreSQL 17 volumes with AES-256 KMS keys; audit logs are SHA-256 hash-chained.
Atreya-MD verifies your Ed25519 .lic file locally in memory against public_key.pem — zero internet call-home sockets are ever opened.

Annual CDC / CMS FY2027 Catalog Ingestion

  • Preferred (Zero-GPU): Pull vendor-published pre-embedded .csv.gz bundle via POST /api/v1/vector/ingest-bundle.
  • Alternative (Direct XML): Ingest official CMS icd10cm-table-and-index-YYYY.zip directly inside your VPC.
Zero-GPU Pre-Embedded Bundle Pull (or Direct CMS XML)
bash
# Option A: Stream vendor pre-embedded FY2027 vectors into Postgres (Zero GPU)
curl -X POST https://atreyamd.hospital.internal/api/v1/vector/ingest-bundle \
  -H "X-API-Key: sk_amd_your_admin_key" \
  -H "Content-Type: application/json" \
  -d '{
    "bundle_uri": "s3://atreyamd-catalog-prod/icd10cm/fy2027/icd10cm_fy2027_embeddinggemma_768d.csv.gz",
    "manifest_uri": "s3://atreyamd-catalog-prod/icd10cm/fy2027/icd10cm_fy2027_embeddinggemma_768d.manifest.json"
  }'

# Option B: Direct CMS Tabular + Index XML ingestion
atreyamd ingest-cms icd10cm_tabular_2027.xml \
  --index-xml icd10cm_index_2027.xml \
  --output /app/data/icd10cm_fy2027.json \
  --release FY2027