-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ZT] Load Balancing traffic to Cloudflare Tunnel endpoints #25578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
0f2f392
add mermaid diagrams
ranbel 34ab9ae
delete old private load balancing page
ranbel 209f43d
delete partial
ranbel 15e794e
edit diagrams
ranbel 0d5b32c
private load balancer for warp-to-tunnel
ranbel d4b3bde
clean up tunnel LB overview page
ranbel 6207f62
move replica how-to instructions
ranbel dfafed5
begin public load balancer refresh
ranbel 13c7b46
update diagrams
ranbel e31156a
move cli instructions
ranbel 849508e
small clarification
ranbel 03f788a
enhance LB instructions
ranbel c503c9c
small clarification
ranbel c7711dc
explain diagrams
ranbel ffc0013
minor edits
ranbel 2ff59c9
fix invalid links
ranbel 4e4e239
add vnet details to IP/CIDR guide
ranbel b59b6d8
add prereqs
ranbel 774381d
Merge branch 'production' into ranbel/load-balancing-with-zt
ranbel 0fabb71
hostname routes
ranbel e1674eb
update titles for example LB configs
ranbel b4dd790
clarify public LB instructions
ranbel 959a9fc
clarify local connection preference
ranbel 091332d
link to health notifications
ranbel 3491a35
replicas are identical
ranbel 4ea5c72
fix invalid link
ranbel 89525f6
Update src/content/docs/cloudflare-one/connections/connect-networks/r…
ranbel f34fe03
fix typo
ranbel 0326531
dashboard/API for host header
ranbel e2287a2
fallback pool
ranbel 9042b7c
legacy tunnels no longer supported
ranbel fbc664b
update rule links
ranbel 981941f
Update src/content/docs/cloudflare-one/connections/connect-networks/r…
ranbel 900f56a
Merge branch 'production' into ranbel/load-balancing-with-zt
ranbel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...ions/connect-networks/configure-tunnels/tunnel-availability/deploy-replicas.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| --- | ||
| pcx_content_type: how-to | ||
| title: Deploy cloudflared replicas | ||
| sidebar: | ||
| order: 2 | ||
| --- | ||
|
|
||
| import { Render } from "~/components"; | ||
|
|
||
| To deploy multiple instances of `cloudflared`, you can create and configure one tunnel and run it on multiple hosts. If your tunnel runs as a service, only one `cloudflared` instance is allowed per host. | ||
|
|
||
| You can run the same tunnel across various `cloudflared` processes for up to 100 connections (25 replicas) per tunnel. Cloudflare Load Balancers and DNS records can still point to the tunnel and its UUID. Traffic will be sent to all `cloudflared` processes associated with the tunnel. | ||
|
|
||
| :::tip[Deploy replicas in Kubernetes] | ||
| For information about running `cloudflared` in a Kubernetes deployment, refer to the [Kubernetes guide](/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes/). | ||
| ::: | ||
|
|
||
| ## Remotely-managed tunnels | ||
|
|
||
| 1. To create a remotely-managed tunnel, follow the [dashboard setup guide](/cloudflare-one/connections/connect-networks/get-started/create-remote-tunnel/). | ||
| 2. On the **Tunnels** page, select your newly created tunnel. The **Connectors** section shows all of the `cloudflared` instances for that tunnel. | ||
| 3. Select **Configure**. | ||
| 4. Select the operating system of the host where you want to deploy a replica. | ||
| 5. Copy the installation command and run it on the host. | ||
|
|
||
| The new replica will appear on the **Connectors** list for the tunnel. | ||
|
|
||
| ## Locally-managed tunnels | ||
|
|
||
| 1. To create a locally-managed tunnel, complete Steps 1 through 5 in the [CLI setup guide](/cloudflare-one/connections/connect-networks/do-more-with-tunnels/local-management/create-local-tunnel/). | ||
|
|
||
| 2. Run your newly created tunnel. | ||
|
|
||
| ```sh | ||
| cloudflared tunnel run <NAME> | ||
| ``` | ||
|
|
||
| This will start a `cloudflared` instance and generate a unique `connector_id`. | ||
|
|
||
| 3. In a separate window or on another host, run the same command again: | ||
|
|
||
| ```sh | ||
| cloudflared tunnel run <NAME> | ||
| ``` | ||
|
|
||
| This will initialize another `cloudflared` instance and generate another `connector_id`. | ||
|
|
||
| 4. Run `tunnel info` to show each `cloudflared` instance running your tunnel: | ||
|
|
||
| ```sh | ||
| cloudflared tunnel info <NAME> | ||
| ``` | ||
|
|
||
| This will output your tunnel UUID as well as two Connector IDs, one for each `cloudflared` process running your tunnel. With this command, you can also see that your tunnel is now being served by eight connections. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.