cloudflare / cloudflare/cloudflared
💡Support for multiple replicas of a service under the same hostname
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the feature you'd like**
Is there support, or any intention to support, multiple replicas of a service under the same hostname in Zero Trust / cloudflared?
Assumming I have two replicas of a service running on instances `http://vm01:8000` and `http://vm02:8000`.
I would like to be able to expose them through `foo.example.org` with one (or more) cloudflared agents withoug having to also configure an LB software or proxy equivalent. Requests should be load balanced to the backends and healthchecks should be configurable.
This is required for High Available applications exposed through Zero Trust.
**Describe alternatives you've considered**
Maintain a proxy in front of the applications to handle the load balancing, backends healthchecks etc. Even for a software proxy (eg NGINX or Traefik) you still have to address the issue of multiple backeds for HA to avoid a SPOF. Not to mention the extra hop.
It would be great if one can avoid all that and have cloudflared support multiple replicas of the same service.
**Additional context**
https://github.com/cloudflare/cloudflared/issues/417 can be considered as a related request (and a more complicated one). It has to do with exposing different applications running on different ports under the same hostname while this is for just supporting multiple replicas of the same service.
Also, in the Kubernetes world, this is not an issue because you can map Cloudflared services to Kubernetes service objects.
Contributor guide
Assessment
This issue has not been assessed yet.