Has anyone tried setting up rancher behind traefik which in turn is behind cloudflare tunnel?
I have a set of mini PCs that make up an 8 node cluster (3 x servers, 5x agents)
They are exposed to the outside internet using cloudflare tunnels which in turn point to traefik as a reverse proxy.
I have Rancher installed on this on prem k3s cluster and it's able to manage that cluster locally no problem.
I have another cluster running as a series of spot instances on a cloud provider.
I'd like to be able to administer that cluster from within rancher instead of having to constantly switch contexts in terminal, or vscode.
After creating the cluster in Rancher to import, I try running kubectl apply -f [[url for the manifest]].
The resulting cattle-cluster-agent pod is able to connect to the rancher tunnel via cloudflare, is correctly routed by traefik, but I get an error "cluster not found" which I think is a consequence of the different layers of certificates being applied to the request (Internet -> cloudflare, cloudflare -> traefik, and traefik -> rancher)
How can I get this cloud-based cluster to connect to my on-prem rancher instance?