Softwr

Cloud · head to head

Google Cloud Run vs Headscale

Google Cloud Run logo

Google Cloud Run

Cloud

Managed platform for running containers and functions on Google Cloud

From
On request
Free plan
No
Headscale logo

Headscale

Networking

Open source reimplementation of the Tailscale coordination server for a single organisation

From
Free
Free plan
Yes

The short version

  • Headscale is free; Google Cloud Run prices on request.
  • Only Google Cloud Run lists deploy any container image; only Headscale lists user separation.
  • Where Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.
  • Where Headscale falls short: it is deliberately single tenant, so a managed service provider cannot use one deployment to serve several customer networks.

How do Google Cloud Run and Headscale differ?

Google Cloud Run and Headscale differ on starting price (On request against Free), pricing model and free tier (No against Yes). Only the attributes on which Google Cloud Run and Headscale actually diverge.

Attributes where Google Cloud Run and Headscale differ
AttributeGoogle Cloud RunHeadscale
Starting priceOn requestFree
Pricing modelUsage-basedOpen source, no licence fee
Free tierNoYes
PlatformsWebLinux, Self-hosted
CategoryCloudNetworking

Which features does each one have?

They share no listed features; 9 appear only for Google Cloud Run and 6 only for Headscale. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Google Cloud Run

  • Deploy any container image
  • Source-based builds for common languages
  • Services with automatic scaling and scale to zero
  • Jobs for scheduled or manual tasks
  • Worker pools for background processing
  • Traffic splitting and rollback between revisions
  • Custom domains and managed TLS
  • Request-based and instance-based billing

Only in Headscale

  • Self hosted control server
  • Access control policies
  • User separation
  • Pre-authentication keys
  • Subnet routers and exit nodes
  • Own or shared DERP

What is each one used for?

Google Cloud Run is most often brought in for hosting web APIs and microservices; Headscale for running a mesh network where no third party may hold the device registry. The jobs each tool is most often brought in to do.

Google Cloud Run

  • Hosting web APIs and microservicesnot Headscale
  • Scheduled batch jobsnot Headscale
  • Queue consumers on worker poolsnot Headscale
  • Deploying containers without managing clustersnot Headscale
  • Event-driven backends with Pub/Subnot Headscale

Headscale

  • Running a mesh network where no third party may hold the device registrynot Google Cloud Run
  • A homelab or personal fleet where paying per user for a hosted control plane is not worth itnot Google Cloud Run
  • Air gapped or restricted environments that cannot reach an external coordination servicenot Google Cloud Run
  • Keeping the Tailscale client experience while removing the vendor from the trust pathnot Google Cloud Run

Where do Google Cloud Run and Headscale fall short?

Google Cloud Run's most cited limit: runs only on Google Cloud, so there is no self-hosted option. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Google Cloud Run

  • Runs only on Google Cloud, so there is no self-hosted option
  • The container file system is in memory and not persistent
  • Worker pools do not autoscale natively and need at least one instance
  • Services are stateless, so state needs external storage

Headscale

  • The clients are proprietary software maintained by a company with no obligation to Headscale, so a client update can change protocol behaviour and break your control server until volunteers catch up
  • Features that live on the vendor side, including the admin console, Funnel and app connectors, do not exist here and cannot be added, so feature comparisons against Tailscale are misleading
  • There is no official web interface, so day to day administration is a command line tool or one of several unofficial front ends of varying quality and maintenance
  • It is deliberately single tenant, so a managed service provider cannot use one deployment to serve several customer networks
  • Upgrades have required database migrations and policy format changes between releases, and with no support contract a failed migration on the control server is your problem alone

How much do Google Cloud Run and Headscale cost?

Headscale is free to use. Plan by plan below, from each vendor's own pricing page.

Google Cloud Run

On request

No published plan breakdown. See the Google Cloud Run review.

Headscale

Free
  • HeadscaleFree
    • Full functionality, no node limit
    • Official Tailscale clients on every platform
    • No vendor account required

Which should you pick?

Choose Google Cloud Run if

  • You need deploy any container image.
  • You also want source-based builds for common languages.

Choose Headscale if

  • You need self hosted control server.
  • You want to start without paying.
  • You work on Linux, Self-hosted.
  • You also want access control policies.

Questions people ask

Is Google Cloud Run or Headscale better?
It depends on the job. Google Cloud Run fits hosting web APIs and microservices; Headscale fits running a mesh network where no third party may hold the device registry. Google Cloud Run starts at On request and Headscale at Free.
Which is cheaper, Google Cloud Run or Headscale?
Headscale has a free tier; the other does not. Paid plans start at On request for Google Cloud Run and Free for Headscale.
Does Google Cloud Run or Headscale run on more platforms?
Google Cloud Run runs on Web. Headscale runs on Linux, Self-hosted.
Can I use Headscale for free?
Yes. Headscale has a free tier, so you can try it without paying. Google Cloud Run starts at On request.
What is Google Cloud Run best used for?
Google Cloud Run is most often used for hosting web apis and microservices, scheduled batch jobs, queue consumers on worker pools, deploying containers without managing clusters. Of those, hosting web apis and microservices and scheduled batch jobs are not what Headscale is typically brought in for.
What can Google Cloud Run do that Headscale cannot?
Google Cloud Run covers Deploy any container image, Source-based builds for common languages, Services with automatic scaling and scale to zero, Jobs for scheduled or manual tasks. Headscale covers Self hosted control server, Access control policies, User separation, Pre-authentication keys.

Answered from the vendors’ own pages

Google Cloud Run: What can Cloud Run run?

Any container image, or source code for Go, Node.js, Python, Java.NET and Ruby that Google builds into a container.

Source
Headscale: Is Headscale made by Tailscale?

No. It is an independent community project. Tailscale acknowledges it but does not support it, and the clients it relies on are the vendor ones.

Google Cloud Run: How is Cloud Run billed?

Allocated CPU and memory are billed in 100 millisecond granularity, in request-based or instance-based mode. A free tier is available.

Source
Headscale: What do I lose compared with the hosted service?

The admin console, the vendor relay network unless you use the public DERP servers, and hosted only features such as Funnel and app connectors.

Google Cloud Run: Can Cloud Run scale to zero?

Yes. Services scale to zero when idle unless a minimum number of instances is set.

Source
Headscale: Can I still use the public relay servers?

Yes, the default configuration can use them, though many self hosters run their own DERP to remove that dependency.

Headscale: Is it suitable for a company network?

For a technical team, yes. There is no vendor to escalate to, so it needs someone on staff who is willing to own the control server.

Share

Related pages

Other head to heads