cloudflared
by SGT_911
Helm chartv1.0.1App 1.16.0
Cloudflared tunnel
About this chart
Cloudflared tunnel Helm chart.
How-to deploy.
helm install -n default tunnel "oci://quay.io/sgt911/helm/cloudflared" --set token="<cloudflare-zero-trust-token>"
Using as DaemonSet
helm install -n default tunnel "oci://quay.io/sgt911/helm/cloudflared" --set type=DaemonSet --set token="<cloudflare-zero-trust-token>"
Recommended prometheus configuration.
- job_name: 'cloudflared'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: cloudflared
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
action: keep
regex: true
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scheme]
action: replace
target_label: _scheme_
regex: (https?)
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
action: replace
target_label: _metrics_path_
regex: (.+)
- source_labels: [_address_, __meta_kubernetes_pod_annotation_prometheus_io_port]
action: replace
target_label: _address_
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
- source_labels: [__meta_kubernetes_service_name]
action: replace
target_label: kubernetes_service
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod
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.1 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