Skip to content

CICD-398 · Cloudflare Tunnel integration ​

Encyclopedia · Preview environments and developer experience · All snippets

Previous · CICD-397 · Next · CICD-399

1. Where it fits ​

  • Placement cloudflared/config.yml fragment.
  • Prerequisites trusted preview controller, disposable environment and scoped identities for external resources.
  • Platforms kubernetes, local-lab.

2. Copy the snippet ​

yaml
ingress:
  - hostname: preview.example.com
    service: http://preview-gateway:8080
  - service: http_status:404

3. How it works ​

Routes are evaluated in the declared order. The host and selected backend determine which service receives the request.

4. Verify the result ​

Use a named tunnel and an authorized hostname. Protect internal previews using an access policy and verify the catch-all.

Validation version-dependent (YAML parse). Status definitions.