cloudflare / cloudflare/cloudflare-docs
[cloudflare-one/tutorials] Setup CF Tunnel inside Kubernetes cluster to access Kubernetes API
- Dominant language
- MDX
- Stars
- 5.2k
- Forks
- 16.7k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 337
Description
### Proposed changes
- https://developers.cloudflare.com/cloudflare-one/tutorials
### Subject Matter
Setup CF Tunnel inside Kubernetes cluster to access Kubernetes API
### Content Location
New document
### Additional information
I would like to access k8s API of my local k8s through `kubectl` from the Internet. I thought CF Tunnel could accomplish this. However I'm still clueless regarding what are the things that need to be set up. I found [Connect through Cloudflare Access using kubectl](https://developers.cloudflare.com/cloudflare-one/tutorials/kubectl/) and [Use Cloudflare Tunnels with Kubernetes client-go plugin](https://developers.cloudflare.com/cloudflare-one/tutorials/tunnel-kubectl/) however it seems both require CF Tunnel to run outside of k8s (although still on same host machine). I use [Talos](https://github.com/siderolabs/talos) for my k8s cluster so there's no access to host OS, only k8s.
Related https://github.com/cloudflare/cloudflared/issues/1388
Contributor guide
Assessment
This issue has not been assessed yet.