Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cloudflare-tunnel-ingress-controller

> 云原生
Open source

Expose the website directly into the internet! The Kuberntes Ingress Controller based on Cloudflare Tunnel.

1.2K stars0 likes1 views
WebsiteGitHub

About

Expose the website directly into the internet! The Kuberntes Ingress Controller based on Cloudflare Tunnel.

Cloudflare Tunnel Ingress Controller

TLDR; This project simplifies exposing Kubernetes services to the internet easily and securely using Cloudflare Tunnel.

We'd love to hear how the project works for you—please take a minute to fill out the short community survey: cloudflare-tunnel-ingress-controller feedback.

Prerequisites

To use the Cloudflare Tunnel Ingress Controller, you need to have a Cloudflare account and a domain configured on Cloudflare. You also need a Cloudflare API token with Zone:Zone:Read, Zone:DNS:Edit, and Account:Cloudflare Tunnel:Edit permissions, which you can create quickly using this template; see Cloudflare credentials for details.

Additionally, you need to fetch the Account ID from the Cloudflare dashboard.

Finally, you need to have a Kubernetes cluster with public Internet access.

Get Started

Take a look on this video to see how smoothly and easily it works: Install the controller with Helm:

bash
helm upgrade --install --wait \
  cloudflare-tunnel-ingress-controller \
  cloudflare-tunnel-ingress-controller \
  --repo https://helm.strrl.dev \
  --namespace cloudflare-tunnel-ingress-controller \
  --create-namespace \
  --set cloudflare.apiToken="" \
  --set cloudflare.accountId="" \
  --set cloudflare.tunnelName=""

Follow the quickstart to publish your first Ingress.

Configuration

The controller supports CLI flags and matching environment variables. See controller configuration for the complete list and defaults.

Alternative

There is also an awesome project which could integrate with Cloudflare Tunnel as CRD, check it out adyanth/cloudflare-operator!

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request. To speed up local development and testing, you can use Act to run GitHub Actions workflows locally. For example, to run unit tests using the same workflow as CI:

bash
act -W .github/workflows/unit-test.yaml

You can view all available workflows here.

Local Development with Skaffold

To run the project locally, Skaffold is integrated into the Makefile. First, install Skaffold by following the instructions at skaffold.dev.

Then, start the development environment with:

bash
skaffold dev

Important: The controller pod expects a Kubernetes Secret named cloudflare-api with credentials to authenticate with Cloudflare. If this secret is not present, the pod will fail with: CreateContainerConfigError: secret "cloudflare-api" not found.

There are two ways to provide the required secret:

  1. Manually create it with kubectl:

    bash
    kubectl create secret generic cloudflare-api \
      -n cloudflare-tunnel-ingress-controller-dev \
      --from-literal=api-token='your_api_token' \
      --from-literal=cloudflare-account-id='your_account_id' \
      --from-literal=cloudflare-tunnel-name='your_tunnel_name'
  2. (Recommended for local development) Copy the example file hack/dev/cloudflare-api.example.yaml to hack/dev/cloudflare-api.yaml and fill in your own credentials:

bash
cp hack/dev/cloudflare-api.example.yaml hack/dev/cloudflare-api.yaml

This file is included in .gitignore, so your secrets will not be committed to version control. When you run skaffold dev, the secret defined in cloudflare-api.yaml will be automatically applied to your cluster.

yaml
apiVersion: v1
kind: Secret
metadata:
 name: cloudflare-api
 namespace: cloudflare-tunnel-ingress-controller-dev
stringData:
  api-token: ""
  cloudflare-account-id: ""
  cloudflare-tunnel-name: ""

License

This project is licensed under the MIT License. See the LICENSE file for details.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gocloudflarecloudflare-tunnelingressingress-controller

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category云原生
PricingOpen source

> Related tools

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,