Skip to content

Install

Log in to GHCR with a token that has read:packages scope, piping the token on stdin rather than passing it as an argument (avoids it landing in shell history or the process list):

Terminal window
echo "<your-token>" | helm registry login ghcr.io --username <your-github-username> --password-stdin

Create a kubernetes.io/dockerconfigjson Secret from that same login, in the same namespace you install the chart into, and pass it through the chart's existingimagePullSecrets value:

Terminal window
kubectl create secret docker-registry your-pull-secret \
--docker-server=ghcr.io \
--docker-username=<your-github-username> \
--docker-password=<your-token> \
--namespace <your-release-namespace>
imagePullSecrets: [{name: your-pull-secret}]

or, as a Helm --set flag (quoted, since the brackets are otherwise a glob pattern in zsh): --set 'imagePullSecrets[0].name=your-pull-secret'.

  • Kubernetes >= 1.28 — the chart declares kubeVersion: ">=1.28.0-0" and Helm refuses to install it against an older cluster.

  • Gateway API v1.6.0’s standard CRDs, installed first:

    Terminal window
    kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.6.0/standard-install.yaml
  • A Cloudflare account and a zone (domain) you control, with an API token scoped per Token Scopes.

No further prerequisites. cloudflared runs entirely as a Deployment this controller creates and manages for you — there’s no companion install and no LoadBalancer requirement.

  1. Create the namespace:

    Terminal window
    kubectl create namespace cloudflare-gateway-controller-system
  2. Create the pull Secret in it (see the notice above — the image and chart are private artifacts; there’s no anonymous install path):

    Terminal window
    kubectl create secret docker-registry ghcr-pull \
    --docker-server=ghcr.io \
    --docker-username=<your-github-username> \
    --docker-password=<a token with read:packages scope> \
    --namespace cloudflare-gateway-controller-system
  3. Install the chart from GHCR:

    Terminal window
    helm install cloudflare-gateway-controller oci://ghcr.io/dreamfuse-labs/charts/cloudflare-gateway-controller --version 0.4.0 --namespace cloudflare-gateway-controller-system --set 'imagePullSecrets[0].name=ghcr-pull'
Terminal window
kubectl rollout status deployment/cloudflare-gateway-controller -n cloudflare-gateway-controller-system

Once that returns successfully, the controller is running. It has nothing to reconcile yet — no CloudflareGatewayConfiguration, GatewayClass, or Gateway exists — so it will sit idle until you apply one.

Not sure which mode fits your setup? See Overview for the decision table.