Deploy Cloudflare Tunnel in Kubernetes

Original link: https://nyan.im/p/cloudflare-tunnel-on-kubernetes

Cloudflare Tunnel is a tunneling service that reduces the attack surface by connecting origin sites to Cloudflare and providing services without exposing any ports on the server.

Cloudflare Tunnel was previously called Cloudflare Argo Tunnel. Cloudflare Tunnel later became part of Cloudflare Zero Trust and was offered free to all users.

Cloudflare Tunnel has undergone a lot of iterations in the past two years, and many tutorials on the Internet, even the official ones, are outdated. The latest Cloudflare Tunnel does not require any configuration on the client (Cloudflared) except for tokens, all website (service) configuration can be done through the Cloudflare web console. If a tutorial asks you to configure a website with yaml on Cloudflared, then the tutorial is probably out of date.

This article will use httpbin as an example to describe how to deploy Cloudflared on Kubernetes and route other services deployed on Kubernetes.

This article is reprinted from: https://nyan.im/p/cloudflare-tunnel-on-kubernetes
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment