Repository navigation
The ninth alpha release of kflare: the API is still v1alpha1, and it needs Kubernetes 1.34 or newer. A Zone can now be shared with other namespaces, for the hostnames it allows, a renamed resource keeps its Cloudflare object even when the old resource is deleted first, as Argo CD does, and two resources no longer adopt one object when the manager's cache is behind. Manifests and Helm values written for v0.4.3 apply unchanged: read Upgrading from v0.4.3 for what the new controller does differently with them.
helm upgrade kflare oci://ghcr.io/jonathangraniero/charts/kflare --version 0.5.0 -n kflare-system \
--values kflare-values.yamlThe image is ghcr.io/jonathangraniero/kflare:0.5.0, for linux/amd64 and linux/arm64. The deploy guide's Verifying a release checks both signatures before you install. To install kflare for the first time, follow the README's quickstart.
Upgrading from v0.4.3
No manifest or values changes. With the values you have, the chart renders what v0.4.3's did but for one new flag on the controller, --rename-grace-period=30s, and the CRDs of Zone, DNSRecord and WorkerRoute, which gain optional fields: if you manage the CRDs yourself (crds.enabled=false), apply config/crd/bases first. The controller's permissions are the same.
Two things the new controller does differently:
- Deleting a resource takes 30 seconds longer when kflare would delete its Cloudflare object, so that a resource that replaces it can take the object over. Set the chart's
renameGracePeriodto0sto delete at once, as before (Renaming a resource) - A
DNSRecordthat adopts a proxied record must sayproxied. One with an adoption policy and noproxiedin its spec used to adopt a proxied record and turn its proxy off; it now reportsAlreadyExistsuntil the spec setsproxied: trueorproxied: false. Records kflare created or already manages are not affected
The Argo CD and Flux health checks in the deploy guide know the new reason ZoneReferenceNotAllowed: update your copies of them if you share a Zone.
Resources
- A
Zonecan be shared with other namespaces, for the hostnames it allows. ADNSRecordor aWorkerRoutecan name a Zone in another namespace withzoneRef.namespace, and the Zone's newspec.allowedReferenceslists which namespaces may, by a label selector, and for which hostnames, exact or below a*.wildcard. A platform team can then keep a zone in its namespace while application teams manage their own records, without aZoneof their own that could act on the whole zone. A resource the Zone does not allow reports reasonZoneReferenceNotAllowed, and kflare makes no Cloudflare call for it. Rules and settings stay in the Zone's namespace. Nothing changes for manifests withoutzoneRef.namespace(Sharing a Zone with other namespaces, #78)
The controller
- Adopting a proxied DNS record no longer turns its proxy off by omission. A
DNSRecordwhose spec leavesproxiedunset asks for a DNS-only record, so one with an adoption policy that found a proxied record adopted it and turned its proxy off, which publishes the origin's address and takes the zone's WAF, rules and cache out of the traffic's path. It now reportsAlreadyExists, with a message that says why, and leaves the record alone until its spec setsproxied: true, to keep it proxied, orproxied: false. Nothing changes for a record kflare created or already manages, or for one with atunnelRef, which is always proxied (Manage Cloudflare resources) - A rename keeps its Cloudflare object when the old resource is deleted first. kflare handed a deleted resource's object to the resource that replaces it only if that one existed already. Argo CD prunes before it applies, so a renamed
DNSRecordcould still have its record deleted and created again, and resolvers that asked in between cached the missing record for the zone's negative TTL. A deleted resource now keeps the object kflare would delete with it for 30 seconds (the chart's newrenameGracePeriod, the controller's--rename-grace-period), with an Event with reasonAwaitingSuccessor, and hands it over as soon as the new resource is created. Every other deletion of an object takes that much longer;0sdeletes at once, as before (Renaming a resource) - Two resources no longer adopt one object when the manager's cache is behind. A resource with an adoption policy looked for another resource's claim on the object in the manager's cache, which may not hold a claim written a moment before. Two resources with one key, such as two KVNamespaces with one title and
adopt-or-create, could then both own the object, and deleting either would have deleted it for the other. The kinds of the shared CRUD reconciler now read the claims from the API server, within the namespaces and the selector of the installation (#132)
Monitoring
- Scraping kflare's metrics with Datadog. The deploy guide has the annotation that has the Datadog Agent scrape the controller over HTTPS with its own token, the permission it needs, and the names the metrics get in Datadog (Datadog)
Known limitations
v0.4.3's, unchanged. ARCHITECTURE.md explains each.