cloudflare-tunnel

by ethPandaOps

Helm chartv0.5.0Verified publisher

Creation of a cloudflared deployment - a reverse tunnel for an environment

About this chart

cloudflare-tunnel

Creation of a cloudflared deployment - a reverse tunnel for an environment

Values

KeyTypeDefaultDescription
affinityobject{}
argslist[]
cloudflare.accountstring""
cloudflare.enableWarpboolfalse
cloudflare.existingSecretstring""Name of an existing Secret holding the tunnel credentials in a credentials.json key; when set, the chart creates no Secret.
cloudflare.ingresslist[]
cloudflare.secretstring""
cloudflare.tunnelIdstring""
cloudflare.tunnelNamestring""
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"cloudflare/cloudflared"
image.tagstring"latest"
imagePullSecretslist[]
initContainerslist[]Init containers to add to the pod, rendered as given. They run before cloudflared starts.
minReadySecondsint0Minimum seconds a new pod must stay Ready before the Deployment counts it as available. 0 leaves it unset.
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podDisruptionBudgetobject{"minAvailable":1}Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created
podSecurityContext.runAsNonRootbooltrue
podSecurityContext.runAsUserint65532
readinessProbeobject{"failureThreshold":1,"httpGet":{"path":"/ready","port":2000},"periodSeconds":2}Readiness probe for the cloudflared container. /ready returns 200 only while cloudflared has an active connection to the Cloudflare edge.
replicaCountint2
resourcesobject{}
securityContext.allowPrivilegeEscalationboolfalse
securityContext.capabilities.drop[0]string"ALL"
securityContext.readOnlyRootFilesystembooltrue
serviceAccount.annotationsobject{}
serviceAccount.namestring""
tolerationslist[]

Deploy cloudflare-tunnel with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cloudflare-tunnel 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 chartcloudflare-tunnel is pinned at v0.5.0 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