cloudflare-operator

by containeroo

Helm chartv1.10.9App v1.10.8Verified publisher

Helm chart for Cloudflare Operator

About this chart

cloudflare-operator chart

The cloudflare-operator chart provides a Helm chart as a first-class method of installation on Kubernetes.

Installation

For a detailed installation guide, see the cloudflare-operator documentation.

Configuration

The following tables lists the configurable parameters of cloudflare-operator helm chart and their default values.

ParameterDefaultDescription
image.repositoryghcr.io/containeroo/cloudflare-operatorImage repository
image.pullPolicyIfNotPresentImage pull policy
image.tagNoneOverrides the image tag of chart appVersion
imagePullSecrets[]Image pull secrets
args[]Command line arguments to pass to the container
gatewayAPI.enabledfalseEnable Gateway API route support (CRDs required)
nameOverrideNoneOverride the chart name
fullnameOverrideNoneOverride the full name of resources
serviceAccount.createtrueIf true, create a new service account
serviceAccount.annotations{}Additional Service Account annotations
serviceAccount.namecloudflare-operatorService account to be used
clusterRole.createtrueIf true, create cluster role & cluster role binding
clusterRole.namecloudflare-operatorThe name of a cluster role to bind to
clusterRole.extraRules[]Additional rules to be included in the role
podAnnotations{}Additional pod annotations
podSecurityContext{}Pod-level security context
securityContext{}Container-level security context
resources.requests.cpu100mCPU resource requests for the deployment
resources.requests.memory200MiMemory resource requests for the deployment
resources.limits.cpu100mCPU resource limits for the deployment
resources.limits.memory200MiMemory resource limits for the deployment
metrics.podMonitor.enabledfalseEnable pod monitor
metrics.podMonitor.namespacesame as release namespaceNamespace for the pod monitor
metrics.podMonitor.additionalLabels{}Additional labels for the pod monitor
metrics.podMonitor.scrapeInterval60sScrape interval for the pod monitor
metrics.prometheusRule.enabledfalseEnable prometheus rule
metrics.prometheusRule.namespacesame as release namespaceNamespace for the prometheus rule
metrics.prometheusRule.additionalLabels{}Additional labels for the prometheus rule
livenessProbe.enabledtrueIf true, enables livenessProbe for the deployment
readinessProbe.enabledtrueIf true, enables readinessProbe for the deployment
nodeSelector{}Node Selector properties for the deployment
tolerations[]Tolerations properties for the deployment
affinity{}Affinity properties for the deployment
sidecars[]Add additional sidecar containers to the operator pod

Upgrade Notes

Chart 1.10.7 / operator v1.10.6

This chart uses operator v1.10.6. CRDs are managed separately from the chart; apply the matching CRDs before upgrading the operator:

kubectl apply --server-side -f https://github.com/containeroo/cloudflare-operator/releases/download/v1.10.6/crds.yaml

Intervals must be valid, positive Go durations, such as 30s or 5m. Correct any invalid or non-positive intervals in existing resources before updating the CRDs.

After the upgrade, allow existing DNSRecords to reconcile successfully and populate status.zoneID and status.accountName before changing their zone or account. Keep the original Account and token Secret available until remote cleanup completes. Records whose original Zone was already removed need that Zone restored, or their verified remote identity supplied in status, before deletion.

Identical Ingress and Gateway API host requests in the same namespace now share a DNSRecord. Shared changes require all owners to agree. New generated resource names include a hostname hash; existing generated resources keep their names. Separate DNSRecord resources cannot adopt an already-owned remote record, and adoption requires matching content or structured data.

Status metrics distinguish Ready (0), Failed (1), and Unknown (2). The chart's failure alerts match only Failed; Unknown no longer appears as a critical failure.

From v0.x.x to v1.0.0

The apiVersion of the cloudflare-operator CRDs changed from cf.containeroo.ch/v1beta1 to cloudflare-operator.io/v1.

It is advised to backup and then remove all existing objects and then update the CRDs to v1.0.0:

kubectl delete crds accounts.cf.containeroo.ch zones.cf.containeroo.ch dnsrecords.cf.containeroo.ch ips.cf.containeroo.ch
# wait until cloudflare-operator removes all objects
# update CRDs
kubectl apply --server-side -f https://github.com/containeroo/cloudflare-operator/releases/download/v1.0.0/crds.yaml
# update cloudflare-operator

From v0.0.x to v0.1.0

The apiVersion of the cloudflare-operator CRDs changed from cf.containeroo.ch/v1alpha1 to cf.containeroo.ch/v1beta1.
Please update your CRDs to cf.containeroo.ch/v1beta1 before upgrading to v0.1.0:

kubectl apply --server-side -f https://github.com/containeroo/cloudflare-operator/releases/download/v0.1.0/crds.yaml

Deploy cloudflare-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cloudflare-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcloudflare-operator is pinned at v1.10.9 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply