apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-staging
spec:
  acme:
    email: peter.kurfer@gmail.com
    server: https://acme-staging-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      name: letsencrypt-staging
    solvers:
      - http01:
          ingress:
            ingressClassName: traefik
      - dns01:
          cloudflare:
            email: peter.kurfer@gmail.com
            apiTokenSecretRef:
              name: acme-dns-cloudflare
              key: api-token