apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-cloudflare
spec:
  acme:
    # Email address used for ACME registration
    email: your-email@example.com
    # ACME server URL (Let's Encrypt production)
    server: https://acme-v02.api.letsencrypt.org/directory
    # Name of a secret used to store the ACME account private key
    privateKeySecretRef:
      name: letsencrypt-cloudflare
    solvers:
    - dns01:
        cloudflare:
          # Reference to the secret with Cloudflare API token
          apiTokenSecretRef:
            name: cloudflare-api-token-secret
            key: api-token