PagesDomain is a namespaced resource that configures custom domains for Cloudflare Pages projects.
PagesDomain allows you to serve Pages projects through custom domains. Configure DNS settings and SSL/TLS options directly from Kubernetes.
- Custom domain configuration
- Automatic SSL certificates
- DNS management integration
- Environment-specific domains
- Subdomain support
| Field | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | Custom domain |
projectRef |
ProjectRef | Yes | Reference to PagesProject |
environment |
string | No | Production or preview |
cloudflare |
CloudflareDetails | Yes | API credentials |
apiVersion: networking.cloudflare-operator.io/v1alpha2
kind: PagesDomain
metadata:
name: app-domain
namespace: production
spec:
domain: "app.example.com"
projectRef:
name: my-app
environment: "production"
cloudflare:
accountId: "1234567890abcdef"
credentialsRef:
name: production- PagesProject created
- Domain managed by Cloudflare
- Valid API credentials
- PagesProject - The project
- PagesDeployment - Project deployment