cloudflared

by QuenchWorks

Helm chartv0.0.6App 2026.10.7Apache-2.0Verified publisher

cloudflared, the Cloudflare Tunnel client: publishes in-cluster services through Cloudflare without opening inbound ports, using a tunnel token. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks cloudflared

Hardened cloudflared, the Cloudflare Tunnel client. It dials out to Cloudflare and carries traffic for the public hostnames of a tunnel to services in the cluster, so nothing needs an inbound port, a LoadBalancer or a public IP.

The image is built from the upstream release tag as one static Go binary (with upstream's container metrics stamp), runs as nonroot uid 1001 with auto-update off, is CVE-gated (the build fails on any fixable CVE), and is cosign-signed and pinned by digest.

Install

Create a tunnel in the Cloudflare dashboard (Zero Trust > Networks > Tunnels), copy its token, and:

kubectl create secret generic tunnel --from-literal=token=<TUNNEL_TOKEN>
helm install edge oci://ghcr.io/quenchworks/charts/cloudflared --set tunnel.existingSecret=tunnel

Then add public hostnames on the tunnel in the dashboard, pointing at in-cluster Services, e.g. app.example.com to http://my-app.default.svc:80.

Verify the image

cosign verify ghcr.io/quenchworks/images/cloudflared \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

gh attestation verify oci://ghcr.io/quenchworks/images/cloudflared@<digest> --owner quenchworks

Values

KeyDefaultDescription
image.repositoryghcr.io/quenchworks/images/cloudflared
image.digest(CI-maintained)Pinned image digest; never a tag.
replicaCount2Cloudflare balances a tunnel across every connected replica.
tunnel.token""Tunnel token, stored in the chart's Secret (prefer existingSecret).
tunnel.existingSecret / existingSecretKey"" / tokenSecret holding the token.
tunnel.protocolautoauto, quic or http2 (http2 where UDP egress is blocked).
tunnel.logLevelinfo
extraArgs[]Extra cloudflared tunnel flags.
metrics.port2000/metrics, /ready (connected), Service <release>-cloudflared-metrics.
networkPolicy.enabled / allowExternaltrue / falseIngress to the metrics port only.
podDisruptionBudget.enabled / minAvailabletrue / 1Keep one connector during node drains.
resources25m / 64Mi requests, 1 CPU / 256Mi limits

The common QuenchWorks knobs (podLabels, nodeSelector, tolerations, extraEnvVars, extraVolumes, security-context overrides, probe overrides) work as in every QuenchWorks chart.

Design

  • No listener but metrics, so no TLS block. cloudflared dials out to Cloudflare over QUIC or HTTP/2 with Cloudflare's certificates; it serves nothing in the cluster but /metrics.
  • The token stays out of the process list. It reaches cloudflared as TUNNEL_TOKEN from a Secret, not as a flag.
  • Readiness is the edge connection (/ready); liveness reads /metrics.
  • Auto-update is off: update by moving the chart to a new image digest.

cloudflared is Apache-2.0 licensed.

Deploy cloudflared with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cloudflared on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcloudflared is pinned at v0.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply