apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-issuer
spec:
  acme:
    # Let's Encrypt will use this to contact you about expiring
    # certificates, and issues related to your account.
    email: tidb-service@pingcap.com
    server: https://acme-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      # Secret resource that will be used to store the account's private key.
      name: letsencrypt-issuer-account-key
    # Add a single challenge solver, HTTP01 using kong gateway
    solvers:
    - dns01:
        azureDNS:
          subscriptionID: ad881159-0593-4502-96e4-e2698b790a3d
          environment: AzurePublicCloud
          hostedZoneName: prod.azure.tidbcloud.com
          resourceGroupName: prod-global-service-rg
          managedIdentity:
            clientID: 9f309ab1-1732-4a98-be37-1383a1b0609a
