cfgate.iocfgate v0.2.0-alpha.11 · Release documentation
Basic Example
Single tunnel exposing one service via Cloudflare.
Quick Start
Section titled “Quick Start”# 1. Install Gateway API + cfgatekubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.6.2/standard-install.yamlkubectl apply -f https://github.com/cfgate/cfgate/releases/latest/download/install.yaml
# 2. Create credentialskubectl create secret generic cloudflare-credentials \ -n cfgate-system \ --from-literal=CLOUDFLARE_API_TOKEN=<your-token>
# 3. Deploy example (edit files first)kubectl apply -k examples/basicConfiguration
Section titled “Configuration”Before applying, edit these files:
| File | What to change |
|---|---|
tunnel.yaml | Set accountId to your Cloudflare account ID |
dns.yaml | Set zones[].name to your domain |
httproute.yaml | Set hostnames[] to your subdomain |
Verify
Section titled “Verify”kubectl get cloudflaretunnel -n cfgate-systemkubectl get cloudflarednses -n cfgate-systemkubectl get httproute -n democurl https://echo.yourdomain.comCleanup
Section titled “Cleanup”kubectl delete -k examples/basic