Here are my notes on setting up a Cloudflare tunnel to expose a service running in a Kubernetes cluster.

I have a kubernetes cluster running on my linux machine and I do not want openning a port for nginx or any other service to the public, so I want to use cloudflare tunnel to expose it

cloudflare network helps filter the requests from the public we just need to use it.

cloudflare tunnel

here’s the step by step guide to set up a cloudflare tunnel for your service running in kubernetes cluster https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/ https://developers.cloudflare.com/tunnel/setup

After that go to cloudflare dashboard, add a tunnel add a route to your service, and then you can access it from the public internet. linkding cluster on my mac my linkding page https://ldpi.shirlenelim.se linkding

my github code can be found here little caveat : my linkding service is running on a kubernetes cluster on my mac, so if I’m not online then it’s not up either.