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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| args | list | [] | |
| cloudflare.account | string | "" | |
| cloudflare.enableWarp | bool | false | |
| cloudflare.existingSecret | string | "" | Name of an existing Secret holding the tunnel credentials in a credentials.json key; when set, the chart creates no Secret. |
| cloudflare.ingress | list | [] | |
| cloudflare.secret | string | "" | |
| cloudflare.tunnelId | string | "" | |
| cloudflare.tunnelName | string | "" | |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "cloudflare/cloudflared" | |
| image.tag | string | "latest" | |
| imagePullSecrets | list | [] | |
| initContainers | list | [] | Init containers to add to the pod, rendered as given. They run before cloudflared starts. |
| minReadySeconds | int | 0 | Minimum seconds a new pod must stay Ready before the Deployment counts it as available. 0 leaves it unset. |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podDisruptionBudget | object | {"minAvailable":1} | Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created |
| podSecurityContext.runAsNonRoot | bool | true | |
| podSecurityContext.runAsUser | int | 65532 | |
| readinessProbe | object | {"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. |
| replicaCount | int | 2 | |
| resources | object | {} | |
| securityContext.allowPrivilegeEscalation | bool | false | |
| securityContext.capabilities.drop[0] | string | "ALL" | |
| securityContext.readOnlyRootFilesystem | bool | true | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.name | string | "" | |
| tolerations | list | [] |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcloudflare-tunnel is pinned at v0.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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