apiVersion: cert-manager.io/v1alpha3
kind: ClusterIssuer
metadata:
  name: letsencrypt-issuer
  namespace: cert-manager
spec:
  acme:
    email: ACME_REGISTERED_EMAIL
    server: https://acme-v02.api.letsencrypt.org/directory
    # For testing use:
    # server: https://acme-staging-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      # Secret resource that will be used to store the account's private key.
      name: letsencrypt-account-key
    solvers:
    - dns01:
        cloudflare:
          email: CLOUDFLARE_REGISTERED_EMAIL
          apiTokenSecretRef:
            name: cloudflare
            key:  token

