We're going to integrate the Cloudflare suite to expose our services to the internet.
- Cloudflare DNS
User (ask for domain) -> Internet -> Cloudflare -> Else-where
- Cloudflare Tunnel
Cloudflare -> Cloudflare tunnel agent -> Local services
- You must have your domain and point the nameserver to Cloudflare first.
- Create a tunnel
- Add to config
ExternalDNS makes Kubernetes resources discoverable via public DNS servers. This service will create DNS records to point to the Cloudflare tunnel agent.
Cloudflare tunnel route traffics between the Cloudflare network and your origin.
- (Optional) Error-pages
Provide pretty server error pages.
https://github.com/cloudflare/argo-tunnel-examples/blob/master/named-tunnel-k8s/cloudflared.yaml