Johansen AI LogoJohansen AI Solutions
All Articles
KubernetesDockerDevOpsAI InfrastructureAgOps

From Docker Compose to Kubernetes: A Pragmatic Migration Path

Scaling from a single machine to a production-grade 'AI Lab' on a shoestring

Docker Compose is great for a demo. But when you're running autonomous AI agent teams, you need the durability and orchestration of Kubernetes. Here is the pragmatic migration path for small teams.

John K. Johansen

I’ve spent 40+ years watching infrastructure evolve, from the bare-metal mainframes of the 80s to the cloud-native microservices of today. One thing has remained constant: the tool you use to "Build the Demo" is rarely the tool you should use to "Run the Business."

In May 2026, most AI startups are built on Docker Compose. It’s simple and fast. But when your business begins to depend on orchestrated AI agent teams running 24/7, the limitations of Compose become a structural risk.

To run a business, you need more than containers; you need Orchestration.

Why Kubernetes for AI?

The move to Kubernetes (K8s) isn't just about "Scale"; it's about Durability and Sovereignty.

  1. Durable Context: When you run AI agents, you are running complex, long-duration workflows. Compose has no native way to handle State Management if a host machine fails. K8s provides the substrate for tools like Temporal to ensure your agents never "lose the thread."
  2. Silicon Sovereignty: To protect your IP, you need to run Air-Gapped AI. K8s allows you to manage local hardware (like AMD Ryzen AI NPUs) as part of a unified, private cluster.
  3. Governance at Scale: K8s allows you to enforce Behavioral Guidance and tool scoping across your entire fleet of agents from a single control plane.

The Pragmatic Migration Path

You don't need a massive DevOps team to run K8s in 2026. Here are my three insights for a pragmatic migration:

1. Start Small (The Three-Node Cluster)

Don't jump into the complexity of GKE or EKS. Use a lightweight distribution like k3s or Talos. A three-node cluster is the "sweet spot" for small teams—it provides high availability without the multi-million dollar bill.

2. Namespace your Sovereignty

Isolate your AI Lab from your web frontend. Use namespaces to enforce strict security boundaries. This ensures that even if an agent's tool access is compromised, the rest of your infrastructure remains secure.

3. Orchestrate the Workflow, not just the Container

Don't just migrate your containers. Migrate your Processes. Use K8s to build the AgOps substrate that your human and AI teams will run on.

The Venture Architect's Conclusion

Don't build your future on a foundation that can't scale. Docker Compose is for the lab; Kubernetes is for the market. By moving to a pragmatic K8s architecture early, you are ensuring that your Startup That Runs on AI Agents is built on a defensible, durable substrate.


I help startups design and implement pragmatic Kubernetes architectures that power their AI transitions.

// want to go deeper?

I write about AI agents, startup engineering strategy, and building systems that let small teams do big things — without handing your IP to cloud providers.

Read more articles