cloudflared
by artur9010
A cloudflared with ingress-nginx stack
About this chart
cloudflared+ingress-nginx stack
Cloudflared with ingress-nginx helm chart included, make sure to have cert-manager installed before as it is required to run ingress-nginx.
By default it runs as DaemonSet, cloudflare tunnels are limited to 25 connected clients so if you have bigger cluster just make sure to change type to Deployment in .Values.cloudflared.type
Values are also preconfigured to make ingress-nginx work fine in this setup, feel free to modify them to meet your requirements, those were fine for me.
Helm repository
helm repo add artur9010 https://charts.motyka.pro
helm install cloudflared artur9010/cloudflared
Or from the OCI registry:
helm install cloudflared oci://ghcr.io/artur9010/charts/cloudflared --version <version>
Requirements
- Cert-manager installed
- Cloudflare account with domain and cloudflared tunnel created. You must have an token.
Quick start aka setup guide
- Create a tunnel in zero trust dashboard
- Set default response on tunnel to
nginx-cloudflared-controller:80 - Set token in
.Values.token, make sure to edit other values to meet your preferences. - Now you can create an ingress with
nginx-cloudflaredclass (you can change name in values). To route traffic to it create proxied CNAME record to<tunnel id>.cfargotunnel.com, you can find tunnel id in your browser URL bar when you try to edit an tunnel (/networks/tunnels/cfd_tunnel/< ID HERE >/edit?tab=...). You can also try to add external-dns, I haven't used it yet.
Values
Check values.yaml for available values.
Looking for perfect Linux server? Check netcup
ARM servers are available from 7 eur per month. Check netcup for more info.
Use code 36nc17460389834 to get 5 EUR off.
Looking for more netcup coupons? Check netcup-coupons.com
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcloudflared is pinned at v1.0.12 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