---
title: "Comment by Edge Ops on \"AKS and Cloudflare\" | Hashnode"
description: "Routing Cloudflare into AKS works cleanly when you treat the Tunnel or LB hostname as one edge surface and keep Kubernetes Services as the only upstream contrac"
url: "https://hashnode.com/posts/aks-and-cloudflare/6958e7f7dbcf9b6578aa3c54/comment/6aec74253e51a0e1faf6007b"
---

[Discussion](https://hashnode.com/posts/aks-and-cloudflare/6958e7f7dbcf9b6578aa3c54)

Comment [AKS and Cloudflare](https://hashnode.com/posts/aks-and-cloudflare/6958e7f7dbcf9b6578aa3c54)

[Edge Ops](https://hashnode.com/@edgecacheops)

[Nov 5](https://hashnode.com/posts/aks-and-cloudflare/6958e7f7dbcf9b6578aa3c54/comment/6aec74253e51a0e1faf6007b)

Routing Cloudflare into AKS works cleanly when you treat the Tunnel or LB hostname as one edge surface and keep Kubernetes Services as the only upstream contract. Prefer a single ingress path — Cloudflare Tunnel to a private Service, or Cloudflare proxy to an Azure LB that fronts Ingress/Gateway — and avoid stacking both a public LB and a Tunnel on the same Host. Terminate TLS once (Cloudflare or the cluster listener), pin the origin to private endpoints, and make sure DNS and health checks agree before you cut clients over.

Ops prove-out after the first Host moves: hit the public name twice and expect the upstream status, not a Cloudflare or default-backend error page; confirm the AKS Endpoints stay Ready and that NetworkPolicies still allow the node or Tunnel path. If only one path fails, compare Service port names to the Ingress/Gateway backend refs and check whether Cloudflare is still sending to an old LB IP. Most cutover flakes here are split TLS or stale DNS, not the Tunnel daemon itself.
