Create DNS records from Ingress

Learn how to create DNS records from Ingress

cloudflare-operator can create DNS records from Ingress resources. This guide shows how to configure the controller to automatically create DNS records for your Ingress resources.

Ingress annotations

The following annotation is required: or

To skip the creation of a DNS record, use the annotation "true"
If the DNSRecord was previously created, it get’s deleted after setting the ignore annotation.

The following annotations are optional:

Annotation Value Description IP address or domain DNS record content (e.g. Reference to an IP object e.g. my-external-ip true or false Whether the record should be proxied 1 or 60 - 86400 TTL of the DNS record A, AAAA or CNAME Desired DNS record type e.g. 5m0s Interval at which the DNSRecord object should be reconciled

An example Ingress resource with annotations:

kind: Ingress
  annotations: CNAME
  name: blog
  namespace: blog
    - host:
          - backend:
                name: blog
                  name: http
            path: /
            pathType: Prefix

This will create a DNS record for the host with the content and the type CNAME.

Last modified August 14, 2023: fix: use correct interval format (1009d41)