You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: This project is currently in Alpha (v0.34.x). This is NOT an official Cloudflare product. It uses the Cloudflare API and cloudflared to automate Zero Trust configuration on Kubernetes.
The Cloudflare Zero Trust Operator provides Kubernetes-native management of Cloudflare Zero Trust resources. Built with kubebuilder and controller-runtime, it enables declarative configuration of tunnels, access policies, gateway rules, device settings, R2 storage, and zone rules through Custom Resource Definitions (CRDs).
Features
Category
Features
Tunnel Management
Create/manage Cloudflare Tunnels, automatic cloudflared deployments, Service binding with DNS
Private Network
Virtual Networks, Network Routes, Private Service exposure via WARP
Access Control
Zero Trust Applications, Access Groups, Reusable Access Policies, Inline Policy Rules, Identity Providers, Service Tokens
Reusable access policy (referenced by applications)
AccessIdentityProvider
networking.cloudflare-operator.io/v1alpha2
Cluster
Identity provider config
AccessServiceToken
networking.cloudflare-operator.io/v1alpha2
Namespaced
Service token for M2M
Gateway & Security
CRD
API Version
Scope
Description
GatewayRule
networking.cloudflare-operator.io/v1alpha2
Cluster
Gateway policy rule
GatewayList
networking.cloudflare-operator.io/v1alpha2
Cluster
List for gateway rules
GatewayConfiguration
networking.cloudflare-operator.io/v1alpha2
Cluster
Global gateway settings
Device Management
CRD
API Version
Scope
Description
DeviceSettingsPolicy
networking.cloudflare-operator.io/v1alpha2
Cluster
WARP client settings
DevicePostureRule
networking.cloudflare-operator.io/v1alpha2
Cluster
Device posture check
DNS & Connectivity
CRD
API Version
Scope
Description
DNSRecord
networking.cloudflare-operator.io/v1alpha2
Namespaced
DNS record management
WARPConnector
networking.cloudflare-operator.io/v1alpha2
Namespaced
WARP connector deployment
AccessTunnel
networking.cloudflare-operator.io/v1alpha2
Namespaced
Access tunnel configuration
SSL/TLS & Certificates
CRD
API Version
Scope
Description
OriginCACertificate
networking.cloudflare-operator.io/v1alpha2
Namespaced
Cloudflare Origin CA certificate with K8s Secret
R2 Storage
CRD
API Version
Scope
Description
R2Bucket
networking.cloudflare-operator.io/v1alpha2
Namespaced
R2 storage bucket with lifecycle rules
R2BucketDomain
networking.cloudflare-operator.io/v1alpha2
Namespaced
Custom domain for R2 bucket
R2BucketNotification
networking.cloudflare-operator.io/v1alpha2
Namespaced
Event notifications for R2 bucket
Rules Engine
CRD
API Version
Scope
Description
ZoneRuleset
networking.cloudflare-operator.io/v1alpha2
Namespaced
Zone ruleset (WAF, rate limiting, etc.)
TransformRule
networking.cloudflare-operator.io/v1alpha2
Namespaced
URL rewrite & header modification
RedirectRule
networking.cloudflare-operator.io/v1alpha2
Namespaced
URL redirect rules
Cloudflare Pages
CRD
API Version
Scope
Description
PagesProject
networking.cloudflare-operator.io/v1alpha2
Namespaced
Pages project with build config and bindings
PagesDomain
networking.cloudflare-operator.io/v1alpha2
Namespaced
Custom domain for Pages project
PagesDeployment
networking.cloudflare-operator.io/v1alpha2
Namespaced
Pages deployment (create, retry, rollback)
Registrar (Enterprise)
CRD
API Version
Scope
Description
DomainRegistration
networking.cloudflare-operator.io/v1alpha2
Cluster
Domain registration settings
Kubernetes Integration
CRD
API Version
Scope
Description
TunnelIngressClassConfig
networking.cloudflare-operator.io/v1alpha2
Cluster
Config for Ingress integration
TunnelGatewayClassConfig
networking.cloudflare-operator.io/v1alpha2
Cluster
Config for Gateway API integration
Note: The operator also supports native Kubernetes Ingress and Gateway API (Gateway, HTTPRoute, TCPRoute, UDPRoute) resources when configured with the appropriate IngressClass or GatewayClass.
Examples
See the examples directory for comprehensive usage examples:
Basic - Credentials, Tunnels, DNS, Service Binding
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Acknowledgements
This project is forked from adyanth/cloudflare-operator. We extend our gratitude to @adyanth and all original contributors for their excellent work on the initial implementation.
What's Different
This fork extends the original project with:
Complete Zero Trust resource support (Access, Gateway, Device management)
v1alpha2 API with improved resource management
Native Kubernetes Ingress and Gateway API integration