· Runtime & deploy/ Head to head

Cloudflare Workers vs Kubernetes

The deciding difference is operational: Kubernetes can run on infrastructure you control, Cloudflare Workers cannot. If that constraint is real for you, it settles the choice before anything else is considered.

Cloudflare Workers

Edge runtime with Durable Objects for long-lived, stateful agent sessions.

Proprietary · freemium · hosted service only · SDKs for TypeScript

Kubernetes

Your existing cluster. Nothing new for the platform team to approve.

Open source · can be self-hosted

· Side by side/ 5 of 6 differ
Cloudflare WorkersKubernetes
LicenceProprietaryOpen source
Pricingfreemiumopen source
Self-hostableNoYes
LanguagesTypeScriptAny language
Installnpm i -g wrangler
Keys requiredNoneNone
· Common questions/ FAQ

What is the difference between Cloudflare Workers and Kubernetes?

The deciding difference is operational: Kubernetes can run on infrastructure you control, Cloudflare Workers cannot. If that constraint is real for you, it settles the choice before anything else is considered. Cloudflare Workers: Edge runtime with Durable Objects for long-lived, stateful agent sessions. Kubernetes: Your existing cluster. Nothing new for the platform team to approve.

Can Cloudflare Workers and Kubernetes be self-hosted?

Cloudflare Workers is a hosted service only. Kubernetes can run on your own infrastructure.

Are Cloudflare Workers and Kubernetes open source?

Cloudflare Workers is proprietary (freemium). Kubernetes is open source (open source).

Build a stack with Cloudflare WorkersAll runtime & deploy options
· For agents/ This page, machine-readable

Every page here answers to Accept: text/markdown and returns the same content at roughly a tenth the tokens. No separate site, no toggle — same URL.

curl -s -H "Accept: text/markdown" https://newagent.build/compare/cloudflare-workers-vs-k8s