Skip to content

Commit b4dd790

Browse files
committed
clarify public LB instructions
1 parent e1674eb commit b4dd790

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/content/docs/cloudflare-one/connections/connect-networks/routing-to-tunnel/public-load-balancers.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To create a load balancer for Cloudflare Tunnel published applications:
2626
<DashButton url="/?to=/:account/load-balancing" />
2727
2. Select **Create load balancer**.
2828
3. Select **Public load balancer**.
29-
4. Choose the website to which you want to add this load balancer. To simplify DNS record management, we recommend using the same domain as your published application route.
29+
4. Under **Select website**, select the domain of your published application route.
3030
5. On the **Hostname** page, enter a hostname for the load balancer (for example, `lb.example.com`).
3131
6. On the **Pools** page, select **Create a pool**.
3232
7. Enter a descriptive name for the pool. For example, if you are configuring one pool per tunnel, the pool name can match your tunnel name.
@@ -70,11 +70,11 @@ For this example, assume we have a web application that runs on servers in two d
7070
```mermaid
7171
graph LR
7272
subgraph LB["Public load balancer <br> app.example.com "]
73-
subgraph P1[Pool 1]
74-
E1(["**Endpoint:** &lt;UUID_1&gt;.cfargotunnel.com<br> **Host header**: server1.example.com"])
73+
subgraph P1[Pool 2]
74+
E1(["**Endpoint:** &lt;UUID_1&gt;.cfargotunnel.com<br> **Host header**: server2.example.com"])
7575
end
76-
subgraph P2[Pool 2]
77-
E2(["**Endpoint:** &lt;UUID_2&gt;.cfargotunnel.com<br> **Host header**: server2.example.com"])
76+
subgraph P2[Pool 1]
77+
E2(["**Endpoint:** &lt;UUID_2&gt;.cfargotunnel.com<br> **Host header**: server1.example.com"])
7878
end
7979
end
8080
R@{ shape: text, label: "app.example.com" }
@@ -83,13 +83,13 @@ graph LR
8383
P2 -- Tunnel 2 --> cf2
8484
subgraph D2[Private network]
8585
subgraph r1[Region eu-west-1]
86-
cf1@{ shape: processes, label: "cloudflared <br> **Route:** server1.example.com" }
87-
S1(["Server 1<br> 10.0.0.1:80"])
86+
cf1@{ shape: processes, label: "cloudflared <br> **Route:** server2.example.com" }
87+
S1(["Server 2<br> 10.0.0.1:80"])
8888
cf1-->S1
8989
end
9090
subgraph r2[Region us-east-1]
91-
cf2@{ shape: processes, label: "cloudflared <br> **Route:** server2.example.com" }
92-
S3(["Server 2 <br> 10.0.0.2:80"])
91+
cf2@{ shape: processes, label: "cloudflared <br> **Route:** server1.example.com" }
92+
S3(["Server 1 <br> 10.0.0.2:80"])
9393
cf2-->S3
9494
end
9595
end
@@ -100,8 +100,8 @@ graph LR
100100

101101
As shown in the diagram, a typical setup includes:
102102
- A dedicated Cloudflare Tunnel per data center.
103-
- One load balancer pool per tunnel.
104-
- One load balancer endpoint per pool, where the host header is set to the `cloudflared` published application hostname.
103+
- One load balancer pool per tunnel. The load balancer hostname is set to the user-facing application hostname (`app.example.com`).
104+
- One load balancer endpoint per pool. The endpoint host header is set to the `cloudflared` published application hostname (`server1.example.com`)
105105
- At least two `cloudflared` [replicas](#session-affinity-and-replicas) per tunnel in their respective data centers, in case a `cloudflared` host machine goes down.
106106

107107
Users can now connect to the application using the load balancer hostname (`app.example.com`). Note that this configuration is only valid for [Active-Passive failover](/load-balancing/load-balancers/common-configurations/#active---passive-failover), since each pool only supports one endpoint per tunnel.

0 commit comments

Comments
 (0)