Egress Private Service Connect Endpoint Setup: ClickHouse on Google Cloud for Confluent Cloud

This topic presents the steps for configuring the ClickHouse Sink connector in Confluent Cloud using Egress Private Service Connect on Google Cloud.

For details, see Google Cloud Private Service Connect and ClickHouse.

Prerequisites

The following is a list of prerequisites for configuring the ClickHouse Sink connector with an Egress PrivateLink Endpoint:

  • In Confluent Cloud, one of the following cluster types is set up with the specified network resource:

  • A source topic is created to sink data into the ClickHouse database.

  • ClickHouse instance is created to sink data into and is running within the same region and cloud as the Confluent Cloud cluster.

  • A database and a schema are created in ClickHouse to sink data into.

Step 1. Obtain Endpoint Service name and DNS Name from ClickHouse

  1. In the ClickHouse Cloud console, open the service you want to connect via PrivateLink, then navigate to the Settings menu.

  2. Click Setup PrivateLink Endpoint in Private Endpoint section, and make note of ClickHouse Service Name and DNS Name.

    ../../_images/clickhouse-dns-service-name.png

Step 3. Add Endpoint ID to ClickHouse Cloud organization

  1. Open the ClickHouse Cloud Console, and Copy the VPC endpoint ID from the Egress connection tab.

    ../../_images/clickhouse-vpc-endpoint-id.png
  2. Go to the ClickHouse Console → Settings → Set up Private Endpoint. Add the VPC endpoint ID retrieved in the previous step to the Endpoint ID field. This will allow requests from the Confluent cluster endpoint to access the ClickHouse service.

    ../../_images/clickhouse-add-endpoint.png

Step 4. Create a DNS record

  1. When the PrivateLink Endpoint status transitions to “Ready”, in the DNS tab, click Create record on the associated PrivateLink Endpoint.

    ../../_images/clickhouse-create-dns-record.png
  2. Specify the following, and click Save.

    ../../_images/clickhouse-dns-record.png

Step 5. Create the ClickHouse Sink connector

  1. Specify the ClickHouse hostname as the DNS name fetched from ClickHouse in Step 1. Obtain Endpoint Service name and DNS Name from ClickHouse.

    ../../_images/clickhouse-create-connector.png
  2. See the ClickHouse Sink connector documentation for the steps to create the sink connector Confluent Cloud.