apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-issuer
  namespace: cert-manager
  labels:
    app.kubernetes.io/name: letsencrypt-issuer
    app.kubernetes.io/instance: cert-manager
    app.kubernetes.io/part-of: cert-manager
spec:
  acme:
    email: alexanderlebens@gmail.com
    server: https://acme-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      name: letsencrypt-issuer-account-key
    solvers:
      - selector:
          dnsZones:
            - "alexlebens.net"
            - "*.alexlebens.net"
        dns01:
          cloudflare:
            email: alexanderlebens@gmail.com
            apiTokenSecretRef:
              name: cert-manager-cloudflare-api-token
              key: api-token
