Cloudflared Behavior and expectations
I am thinking of having Cloudflared Deployed in 2x locations, but the locations may not have the same exact services available to each but they would both be coming in on the same *.services.mydomain.com
if only 1 of 2 Cloudflared instances with the same shared config have access to a service, does it break the tunnel in the region that has missing services to call?
2 Replies
Support AI
According to the documentation, if only one of the two Cloudflared instances with the same shared config has access to a service, it will not break the tunnel in the region that has missing services to call.
As stated in the documentation (https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes/):
"Each
cloudflared
replica / pod can reach all Kubernetes services in the cluster."
This means that even if one Cloudflared instance does not have access to a particular service, the other instance can still reach all services in the cluster.
However, it's worth noting that if a user tries to access a service that is not available in one of the regions, they may experience issues or errors. To mitigate this, you can configure Cloudflare Tunnel routes to control how cloudflared
will proxy traffic to services within the cluster.
As mentioned in the documentation (https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes/):
"Once the cluster is connected to Cloudflare, you can configure Cloudflare Tunnel routes to control how cloudflared
will proxy traffic to services within the cluster."
By configuring Tunnel routes, you can ensure that traffic is routed to the correct region and service, even if one region does not have access to a particular service.Sources
This is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.
Yes it will. Tunnels don’t do any load balancing if a service fails