hzmi
Explore posts from serversCDCloudflare Developers
•Created by hzmi on 3/16/2024 in #general-help
Cloudflare Tunnel @ Kubernetes: Traffic routing/load balancing
Hello, I’ve been deploying some stuff with Cloudflare Tunnel on k8s lately.
The topology is like this:
Cloudflare Tunnel → Traefik (As IngressController) → Services.
Because this is Kubernetes, it makes sense that I spawn multiple replicas of Cloudflare Tunnels, which works without issues. And incoming traffic is also somewhat load balanced between the replicas.
My question is:
How does Cloudflare load balances these replicas
Do Cloudflare Load Balancing works here? If yes, what benefit would I get?
Please note that the tunnel replicas uses one TunnelID. My current setup is just having a DNS CNAME Record to <tunnelid>.cfargotunnel.com.
Thanks.
3 replies