cloudflare-operator
by containeroo
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.
| Parameter | Default | Description |
|---|---|---|
image.repository | ghcr.io/containeroo/cloudflare-operator | Image repository |
image.pullPolicy | IfNotPresent | Image pull policy |
image.tag | None | Overrides the image tag of chart appVersion |
imagePullSecrets | [] | Image pull secrets |
args | [] | Command line arguments to pass to the container |
gatewayAPI.enabled | false | Enable Gateway API route support (CRDs required) |
nameOverride | None | Override the chart name |
fullnameOverride | None | Override the full name of resources |
serviceAccount.create | true | If true, create a new service account |
serviceAccount.annotations | {} | Additional Service Account annotations |
serviceAccount.name | cloudflare-operator | Service account to be used |
clusterRole.create | true | If true, create cluster role & cluster role binding |
clusterRole.name | cloudflare-operator | The 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.cpu | 100m | CPU resource requests for the deployment |
resources.requests.memory | 200Mi | Memory resource requests for the deployment |
resources.limits.cpu | 100m | CPU resource limits for the deployment |
resources.limits.memory | 200Mi | Memory resource limits for the deployment |
metrics.podMonitor.enabled | false | Enable pod monitor |
metrics.podMonitor.namespace | same as release namespace | Namespace for the pod monitor |
metrics.podMonitor.additionalLabels | {} | Additional labels for the pod monitor |
metrics.podMonitor.scrapeInterval | 60s | Scrape interval for the pod monitor |
metrics.prometheusRule.enabled | false | Enable prometheus rule |
metrics.prometheusRule.namespace | same as release namespace | Namespace for the prometheus rule |
metrics.prometheusRule.additionalLabels | {} | Additional labels for the prometheus rule |
livenessProbe.enabled | true | If true, enables livenessProbe for the deployment |
readinessProbe.enabled | true | If 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcloudflare-operator is pinned at v1.10.9 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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