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, DNS01 using kong gateway
    solvers:
    - dns01:
        azureDNS:
          subscriptionID: 85b598b9-a080-4476-bc96-ba89e64f92d1
          environment: AzurePublicCloud
          hostedZoneName: southeastasia-chengfei.dev.azure.tidbcloud.com
          resourceGroupName: dev-southeastasia-chengfei-controlplane
          managedIdentity:
            clientID: ba4a31fe-3461-433d-8ad2-1a8aa20eba5d
