minhtt159 / cloudflare-suite

Utilize your cloudflare free account

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Utilize Cloudflare services on Kubernetes and Docker

Motivation / Goal

We're going to integrate the Cloudflare suite to expose our services to the internet.

  1. Cloudflare DNS

User (ask for domain) -> Internet -> Cloudflare -> Else-where

  1. Cloudflare Tunnel

Cloudflare -> Cloudflare tunnel agent -> Local services

Pre-requisite

  1. You must have your domain and point the nameserver to Cloudflare first.
  2. Create a tunnel
  3. Add to config

Explain (Kubernetes)

  1. External-DNS

ExternalDNS makes Kubernetes resources discoverable via public DNS servers. This service will create DNS records to point to the Cloudflare tunnel agent.

  1. Cloudflare tunnel

Cloudflare tunnel route traffics between the Cloudflare network and your origin.

  1. (Optional) Error-pages

Provide pretty server error pages.

Deploy

https://github.com/cloudflare/argo-tunnel-examples/blob/master/named-tunnel-k8s/cloudflared.yaml

About

Utilize your cloudflare free account

License:MIT License