ApsaraDB for ClickHouse supports internal endpoints for connections over virtual private clouds (VPC) endpoints and public endpoints for connections over the Internet. By default, an internal endpoint is provided for you to access an ApsaraDB for ClickHouse cluster over the VPC. If you want to access an ApsaraDB for ClickHouse cluster over the Internet, you need to apply for a public endpoint. This topic describes how to apply for a public endpoint in the ApsaraDB for ClickHouse console.

Background information

If you want to access an ApsaraDB for ClickHouse cluster from a client that is deployed outside the VPC, you need to apply for a public endpoint for the cluster and connect to the ApsaraDB for ClickHouse cluster by using the public endpoint.

Usage notes

Public endpoint application depends on Classic Load Balancer (CLB) and you are charged for the resources you use. Make sure that the balance is sufficient in your account. For more information, see Billing details about relevant services.

Procedure

  1. Log on to the ApsaraDB for ClickHouse console.
  2. In the upper-left corner, select the region where the cluster for which you want to apply for a public endpoint is deployed.
  3. On the Clusters page, click the Default Instances tab. Find the cluster and click the ID of the cluster.
  4. On the Cluster Information page, click Apply for Public Endpoint in the Network Information section.
  5. In the Apply for Public Endpoint dialog box, click OK. A public endpoint is generated.
    Note If you want to use the generated public endpoint to access the ApsaraDB ClickHouse cluster, you must add the IP address or CIDR block of the client to the whitelist of the ApsaraDB ClickHouse cluster. For more information, see Configure a whitelist.