Skip to content

Environments, Migrations & Kubernetes Deployment

Perlite compiles domain models directly into reproducible multi-environment infrastructure targets — pairing policy guardrails and cloud sizing calculations in Studio with synthesized Kubernetes (CDK8s), Helm charts, zero-trust NetworkPolicy isolation, and safe incremental schema migrations.


1. Environment, Policy & Performance Studio

Open Object Browser → Operations & Quality → Environments (🌐) to manage deployment topologies in Environment, Policy & Performance Studio:

  • Left Rail Allocation (Policies & Environments): Manage reusable compliance and infrastructure policy blueprints — Cost-Optimized Cloud UAT (cost-optimized-uat), High-Volume Performance Lab (high-volume-perf), and HIPAA & SOX Production (hipaa-sox-prod) — and attach them cleanly across studio-local, dev, staging, and prod.
  • Four-Step Lifecycle Bar: Progress consistently through ⚙️ 1. Configure, 🚀 2. Deploy & Seed Data, 🧪 3. Functional & Scenario Tests, and ⚡ 4. Stress-Test & Tune.
  • Live Cloud Workload Sizing & Cost Header: Calculates exact node SKU recommendations, aggregate pod counts, vCPU/memory footprints (Amazon Web Services (EKS) • m6i.xlarge • 8 Pods (15.5 vCPU / 17 GiB)), and monthly cost estimates (Est. Monthly: $1,408/mo) as you adjust topology settings.
  • Policy Guardrail & Override Provenance: Settings inherited from attached policies show 🛡️ badges, while explicit environment customizations highlight cleanly with amber borders and Auto-Derived Parameters drawers (26 Auto-Derived Parameters, 28 Auto-Derived Parameters). Click 📊 Compare All Environments for a side-by-side matrix across environments.
Environment, Policy and Performance Studio showing prod connected to HIPAA and SOX Production policy, AWS EKS sizing math pill, estimated monthly cost, and Cloud and App Topology concertinas

Environment, Policy & Performance Studio configuring AWS EKS production under HIPAA & SOX Production guardrails with live pod sizing and dedicated entity splits.


2. Dedicated Pod Splits, Guardrails & Incremental Migrations

Enterprise environments tune scale and database lifecycle safely without editing raw cluster scripts:

  • 🚀 Dedicated Entity & Action Pod Splits (isolatedEntities): Extract burst-heavy workflows (such as WorkOrder dispatch in AWS EKS or Appointment & MedicalRecord workloads in Azure AKS) into dedicated autoscaled deployments (minReplicas, maxReplicas, cpuLimit, memoryLimit, and readPreference).
  • Pre-Generation Guardrail Validation: Before emitting artifacts, the policy validator blocks weaker production overrides across six checks (privateCluster, zero scaleToZeroIdleMinutes, strict strict-interactions NetworkPolicy, KMS encryption, and 2,555-day WORM audit retention).
  • Safe Schema Migrations: Under Operations & Quality → Migrations (🗄️), additive changes emit zero-downtime forward SQL steps while breaking edits surface explicit review warnings prior to promotion.

3. Synthesized Kubernetes (CDK8s), Helm & Zero-Trust NetworkPolicy

Click { } Artifacts on any cluster environment to inspect live synthesized infrastructure output across six tabbed views: Terraform / IaC, Helm Chart, K8s Manifests, Gateway Router, ArgoCD GitOps, and Effective Env Config:

  • Pod Security Hardening: Emits automountServiceAccountToken: false, runAsNonRoot: true, runAsUser: 10001, allowPrivilegeEscalation: false, graceful preStop sleep hooks, and pod anti-affinity across availability zones.
  • Zero-Trust DatabaseNetworkPolicy & Dedicated AuditServiceConstruct: Isolates database ingress strictly to authorized backend workloads and provisions perlite-audit-service on port 3005 backed by persistent storage for hash-chained HIPAA audit logs.
Deployment Artifacts Inspector opened on Kubernetes Manifests showing synthesized Namespace, ResourceQuota, and security labels for fieldops-prod

Deployment Artifacts Inspector rendering synthesized Kubernetes manifests, Helm values, Terraform IaC, Gateway routing, and GitOps files directly inside Studio.


4. Guided Example — Regulated Production Topologies (AWS EKS vs Azure AKS)

Security & Operations · Guide 5 of 5
Environment Policies, Dedicated Entity Pods & Synthesized CDK8s Manifests
Previously in this build: In Guide 4, WorkOrder and dispatch transitions recorded full actor, timestamp, and soft-delete history.
✅ Checkpoint:Field Ops production compiles cleanly with zero guardrail violations, dedicated WorkOrder autoscaling pods, and hardened CDK8s constructs.
Primary TrackConfigure dev (local-kind), staging (aws-eks, eu-west-2), and regulated prod (aws-eks with hipaa-sox-prod policy and dedicated WorkOrder pods) in Environment Studio, then inspect synthesized CDK8s manifests.
  1. Select prod & Attach HIPAA & SOX Production Policy: Open Environment, Policy & Performance Studio on prod and confirm AWS EKS in eu-west-2 runs 3-zone HA, Private API access, and attached policy hipaa-sox-prod.
  2. Isolate WorkOrder into Dedicated Autoscaled Pods: Expand Dedicated Entity & Action Pod Splits to inspect WorkOrder configured with minReplicas: 3, maxReplicas: 12, and primary DB placement.
  3. Preview Synthesized K8s Manifests & Helm Security Values: Click { } Artifacts and switch to K8s Manifests (and Under the Hood below) to verify automountServiceAccountToken: false, DatabaseNetworkPolicy, and AuditServiceConstruct.
AWS EKS production topology under HIPAA & SOX Production policy with WorkOrder Dedicated Entity Pod Splits expanded.
Synthesized K8s Manifests preview in Environment Studio.