cloudflared

by alekc

Helm chartv1.10.2App 2026.11.2Apache-2.0Verified publisher

Cloudflare Tunnel (cloudflared), auto-updated via Renovate on every upstream release, exposes internal services through Cloudflare's edge or runs a TCP/Access tunnel.

About this chart

cloudflared

Cloudflare Tunnel (cloudflared), auto-updated via Renovate on every upstream release, exposes internal services through Cloudflare's edge or runs a TCP/Access tunnel.

cloudflared is Cloudflare's tunnel client: it dials outbound to Cloudflare's edge and exposes an internal service through it, so nothing inbound needs to be opened in your firewall. This chart also supports cloudflared access tcp for TCP-over-tunnel access, and running as a DaemonSet instead of a Deployment. Nothing is routed until you configure at least a tunnel token or an Access hostname, see "Usage examples" below. Renovate opens a PR bumping appVersion and this chart's own version together on every upstream cloudflared release, so a deployed release is never running a stale image without the chart itself also having moved.

Quick start

From the classic chart repository:

helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-cloudflared alekc/cloudflared

Or directly from the OCI registry, no helm repo add needed:

helm install my-cloudflared oci://charts.alekc.dev/cloudflared --version 1.7.0

Verifying the signature

curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/cloudflared --version 1.7.0 --verify --keyring pubring.gpg

Usage examples

Using cloudflared for ingress. Token is sources from a secret

      fullnameOverride: cloudflared-ingress
      log:
        application: "info"
        transport: "info"
      deployment:
        kind: DaemonSet
      env:
        simple:
          TUNNEL_TRANSPORT_PROTOCOL: http2 # If you have problems with default quic
        full:
          - name: TUNNEL_TOKEN
            valueFrom:
              secretKeyRef:
                name: cloudflared-tunnel-secret
                key: cloudflared_k8s_tunnel

Running tcp tunnel access

fullnameOverride: cloudflared-tcp-mqtt
livenessProbe:
  enabled: false
readinessProbe:
  enabled: false
metrics:
  enabled: false
deployment:
    ports:
      containerPort: 1883
      name: mqtt
      protocol: TCP
    env:
      full:
        - name: TUNNEL_ACCESS_ID
          value: "xxx.access" # or you can mount it directly from a secret
        - name: TUNNEL_ACCESS_SECRET
          value: "***"
    args:
      - access
      - tcp
      - "--hostname"
      - "tcppublichost.domain.ltd"
      - "--url"
      - "0.0.0.0:1883"

Homepage: https://github.com/cloudflare/cloudflared

Maintainers

NameEmailUrl
alekc[email protected]https://blog.alekc.org

Source Code

Gotchas

  • livenessProbe/readinessProbe target port 2000, the same port metrics.enabled binds cloudflared's metrics server to. Disabling metrics without also disabling both probes leaves them pointed at a port nothing listens on, and the pod never becomes Ready. The "Running tcp tunnel access" example above disables all three together for exactly this reason.
  • networkPolicy.enabled allows broad egress to 0.0.0.0/0:443 by default. cloudflared dials a changing set of Cloudflare edge IPs over QUIC/HTTP2, there is no small fixed range to allowlist out of the box. Narrow it with networkPolicy.extraEgress if your environment needs a tighter policy (e.g. Cloudflare's published IP ranges).
  • metrics.serviceMonitor.enabled requires metrics.enabled. The chart refuses to render a ServiceMonitor otherwise, cloudflared's /metrics endpoint is only served once TUNNEL_METRICS is set, which only happens when metrics.enabled is true.
  • podDisruptionBudget.enabled is only meaningful once replicaCount (or autoscaling.minReplicas) is greater than 1. With a single replica, a PDB with minAvailable: 1 blocks voluntary node draining entirely, since there is no second pod to take over first.

Upgrade notes

No breaking changes yet. This section will list migration steps for any future release with a kind: removed or kind: changed entry in artifacthub.io/changes that requires one.

Values

KeyTypeDefaultDescription
additionalManifestsobject{}List of additional manifests to include
affinityobject{}Affinity rules for pod scheduling
autoscalingobject{"annotations":{},"enabled":false,"maxReplicas":10,"minReplicas":1,"targetCPUUtilizationPercentage":80}Autoscaling configuration
autoscaling.annotationsobject{}Annotations to add to the HorizontalPodAutoscaler
autoscaling.enabledboolfalseEnable or disable autoscaling
autoscaling.maxReplicasint10Maximum number of replicas
autoscaling.minReplicasint1Minimum number of replicas
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage
commonAnnotationsobject{}Common annotations merged onto every resource, in addition to each resource's own dedicated annotations field.
commonLabelsobject{}Common labels to be added to all resources
configobject{"annotations":{},"data":{},"enabled":false}Application-specific configuration
config.annotationsobject{}Annotations to add to the ConfigMap
config.dataobject{}Key-value pairs for the configuration
config.enabledboolfalseEnable or disable the configuration map
deploymentobject{"additionalMounts":[],"additionalVolumes":[],"annotations":{},"args":["tunnel","run"],"kind":"Deployment","ports":{"additionalPorts":[],"containerPort":80,"name":"http","protocol":"TCP"},"revisionHistoryLimit":2,"strategy":{"type":"RollingUpdate"}}Deployment configuration
deployment.additionalMountslist[]Additional volume mounts
deployment.additionalVolumeslist[]Additional volumes to mount
deployment.annotationsobject{}Annotations to add to the deployment
deployment.portsobject{"additionalPorts":[],"containerPort":80,"name":"http","protocol":"TCP"}Deployment ports
deployment.ports.additionalPortslist[]List of additional ports to expose
deployment.ports.containerPortint80The main container port to expose
deployment.ports.namestring"http"The name of the main container port
deployment.ports.protocolstring"TCP"The protocol for the main container port (e.g., TCP, UDP)
deployment.revisionHistoryLimitint2Number of old ReplicaSets to retain for rollback
deployment.strategyobject{"type":"RollingUpdate"}Deployment strategy (e.g., RollingUpdate, Recreate)
envobject{"full":[],"simple":{"TZ":"UTC"}}Environment variables for the container
env.fulllist[]Full environment variable definitions
env.simpleobject{"TZ":"UTC"}Simple key-value environment variables
extraContainerslist[]Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends.
fullnameOverridestring""Override the full name of the chart
imageobject{"pullPolicy":"IfNotPresent","repository":"cloudflare/cloudflared","tag":""}Container image configuration
image.pullPolicystring"IfNotPresent"Image pull policy (e.g., Always, IfNotPresent)
image.repositorystring"cloudflare/cloudflared"Image repository (e.g., nginx, redis)
image.tagstring""Image tag (overrides the chart appVersion if specified)
imagePullSecretslist[]Secrets for pulling images from private registries
initContainerslist[]Extra init containers appended to the pod spec, templated with tpl.
livenessProbeobject{"config":{"failureThreshold":3,"httpGet":{"path":"/healthcheck","port":2000},"initialDelaySeconds":10,"periodSeconds":10},"enabled":true}Liveness probe configuration
livenessProbe.configobject{"failureThreshold":3,"httpGet":{"path":"/healthcheck","port":2000},"initialDelaySeconds":10,"periodSeconds":10}Liveness probe settings
livenessProbe.enabledbooltrueEnable or disable the liveness probe
log.applicationstring"info"Application logging level {debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]
log.formatstring"default"Output format for the logs (default, json) (default: "default")
log.transportstring"info"Transport logging level(previously called protocol logging level) {debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]
metrics.enabledbooltrueNote: This HAVE to be DISABLED if you are using cloudflared in access tcp mode.
metrics.serviceMonitor.additionalLabelsobject{}Additional labels merged onto the ServiceMonitor itself (for a Prometheus Operator serviceMonitorSelector).
metrics.serviceMonitor.annotationsobject{}Annotations to add to the ServiceMonitor
metrics.serviceMonitor.enabledboolfalseRenders a ServiceMonitor for the Prometheus Operator. Requires the monitoring.coreos.com CRDs and metrics.enabled; the chart refuses to render one without the other, cloudflared's metrics server (which serves /metrics) is only started when metrics are on.
metrics.serviceMonitor.intervalstring"30s"Scrape interval.
nameOverridestring""Override the name of the chart
networkPolicy.annotationsobject{}Annotations to add to the NetworkPolicy
networkPolicy.enabledboolfalseRender a NetworkPolicy restricting ingress to the metrics port (when enabled) and egress to DNS plus Cloudflare's edge on 443. cloudflared dials a changing set of edge IPs, so egress here is broad by default, narrow it with extraEgress if you want to pin specific ranges.
networkPolicy.extraEgresslist[]Additional raw egress rules, appended as-is under spec.egress.
networkPolicy.extraIngresslist[]Additional raw ingress rules, appended as-is under spec.ingress.
nodeSelectorobject{}Node selector for pod scheduling
persistenceobject{"accessMode":"ReadWriteOnce","annotations":{},"enabled":false,"existingClaim":"","mountPath":"/config","size":"800Mi","storageClass":""}Persistent volume configuration
persistence.accessModestring"ReadWriteOnce"Access mode for the volume (e.g., ReadWriteOnce)
persistence.annotationsobject{}Annotations to add to the PersistentVolumeClaim
persistence.enabledboolfalseEnable or disable persistence
persistence.existingClaimstring""Use an existing persistent volume claim
persistence.mountPathstring"/config"Mount path for the volume
persistence.sizestring"800Mi"Size of the volume
persistence.storageClassstring""Storage class to use for the volume
podAnnotationsobject{}Annotations to add to pods
podDisruptionBudgetobject{"annotations":{},"enabled":false,"minAvailable":1}Pod disruption budget configuration. Only meaningful once replicaCount (or autoscaling.minReplicas) is greater than 1.
podDisruptionBudget.annotationsobject{}Annotations to add to the PodDisruptionBudget
podDisruptionBudget.enabledboolfalseEnable or disable the pod disruption budget
podDisruptionBudget.minAvailableint1Minimum number of available pods
podSecurityContextobject{}Pod security context
priorityClassNamestring""Priority class name for pods
readinessProbeobject{"config":{"failureThreshold":3,"httpGet":{"path":"/healthcheck","port":2000},"initialDelaySeconds":10,"periodSeconds":10},"enabled":true}Readiness probe configuration
readinessProbe.configobject{"failureThreshold":3,"httpGet":{"path":"/healthcheck","port":2000},"initialDelaySeconds":10,"periodSeconds":10}Readiness probe settings
readinessProbe.enabledbooltrueEnable or disable the readiness probe
replicaCountint1Number of replicas to deploy
resourcesobject{"limits":{"memory":"256Mi"},"requests":{"cpu":"50m","memory":"128Mi"}}Resource requests and limits for the container
resources.limitsobject{"memory":"256Mi"}Resource limits
resources.requestsobject{"cpu":"50m","memory":"128Mi"}Resource requests
securityContextobject{}Container security context
serviceobject{"annotations":{},"ports":{"name":"http","port":"","protocol":"TCP"},"type":"ClusterIP"}Service configuration
service.annotationsobject{}Service annotations
service.ports.namestring"http"Service name
service.ports.portstring""Service port. If empty will use the container port
service.ports.protocolstring"TCP"Protocol for the service port (e.g., TCP, UDP)
service.typestring"ClusterIP"Service type (e.g., ClusterIP, NodePort, LoadBalancer)
serviceAccountobject{"annotations":{},"create":true,"name":""}Service account configuration
serviceAccount.annotationsobject{}Annotation

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 v1.10.2 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