Is it possible to host headscale on serverless platforms? #427

Closed
opened 2025-12-29 01:29:02 +01:00 by adam · 4 comments
Owner

Originally created by @lyc8503 on GitHub (Feb 11, 2023).

Feature request

There're many cloud platforms providing serverless app hosting. Tailscale client can be deployed to many of them.

I am wondering if a headscale server could be deployed to some serverless platforms so that we don't need to maintain infrastructure by ourselves and maybe reduce costs by a VPS?

Is that possbile in theory? Is headscale now handling requests seperately and don't rely on memory to keep states? (since PaaS may not share memory data between different requests, and variables in memory do not persist.)

If it's possible, I may try to migrate it to some of serverless platforms and have a PR on documents. Thanks!

Originally created by @lyc8503 on GitHub (Feb 11, 2023). <!-- Headscale is a multinational community across the globe. Our common language is English. Please consider raising the feature request in this language. --> **Feature request** There're many cloud platforms providing serverless app hosting. Tailscale client can [be deployed to many of them](https://tailscale.com/kb/integrations/serverless/). I am wondering if a headscale server could be deployed to some serverless platforms so that we don't need to maintain infrastructure by ourselves and maybe reduce costs by a VPS? Is that possbile **in theory**? Is headscale now handling requests seperately and don't rely on memory to keep states? (since PaaS may not share memory data between different requests, and variables in memory do not persist.) If it's possible, I may try to migrate it to some of serverless platforms and have a PR on documents. Thanks! <!-- A clear and precise description of what new or changed feature you want. --> <!-- Please include the reason, why you would need the feature. E.g. what problem does it solve? Or which workflow is currently frustrating and will be improved by this? -->
adam added the enhancement label 2025-12-29 01:29:02 +01:00
adam closed this issue 2025-12-29 01:29:02 +01:00
Author
Owner

@juanfont commented on GitHub (Feb 11, 2023):

Hi @lyc8503, Headscale requires active connections to their managed nodes.

I recommend you looking at something like Scaleway's Stardust instances https://www.scaleway.com/en/stardust-instances/, that should be enough to host headscale for ~100 nodes.

@juanfont commented on GitHub (Feb 11, 2023): Hi @lyc8503, Headscale requires active connections to their managed nodes. I recommend you looking at something like Scaleway's Stardust instances https://www.scaleway.com/en/stardust-instances/, that should be enough to host headscale for ~100 nodes.
Author
Owner

@lyc8503 commented on GitHub (Feb 11, 2023):

OK, thanks a lot for your explanation & recommendation!

@lyc8503 commented on GitHub (Feb 11, 2023): OK, thanks a lot for your explanation & recommendation!
Author
Owner

@allamedo commented on GitHub (Jan 26, 2024):

Some guy has migrated its headscale instance to fly.io here: https://github.com/cloudflare/cloudflared/issues/990#issuecomment-1911471373

@allamedo commented on GitHub (Jan 26, 2024): Some guy has migrated its headscale instance to fly.io here: https://github.com/cloudflare/cloudflared/issues/990#issuecomment-1911471373
Author
Owner

@lyc8503 commented on GitHub (Jan 26, 2024):

I have been using Scaleway Stardust, working so well for me for a long time.

@lyc8503 commented on GitHub (Jan 26, 2024): I have been using Scaleway Stardust, working so well for me for a long time.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#427