references/tunnel/patterns.md
Tunnel Deployment Decisions
Choose deployment ownership and availability requirements before adapting an example.
| Task | Documentation | | --- | --- | | Install a remotely-managed tunnel on a host or in Docker | Setup | | Deploy cloudflared inside a cluster | Kubernetes | | Manage tunnel infrastructure declaratively | Terraform | | Deploy replicas and check current capacity | Replicas and high availability | | Choose redundancy or explicit traffic steering | Routing | | Plan upgrades for the existing installation method | Update cloudflared | | Add authentication or private connectivity | Integrations |
Establish which service each replica can reach and how configuration and credentials reach each host. Decide whether simple redundancy meets the requirement or whether health-based routing needs a load balancer. Verify replacement replicas before retiring existing ones, and include application-level checks in the rollout. See api.md for programmatic operations.