Skip to main content
Version 3.0

ClickHouse connected to the platform:
where the data comes from and who queries it.

The address other components use, S3 storage, and the TDP consumers. Each scenario shows what the chart already provides, the values file commented line by line, and where to configure each consumer.

ChartVersion3.0.3TypeapplicationAppVersion25.8.11.66
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

Components querying ClickHouse, such as Trino, Superset, CloudBeaver and OpenMetadata, configure the ClickHouse Service address and a user accepting connections from other pods in their own charts. On the tdp-clickhouse chart side, integration is storage: a Job preparing an S3 bucket and a policy sending ClickHouse data there. Installation and resources are in ClickHouse Configuration. Users and passwords are in Security - ClickHouse.

Your environment

If you fill in your environment details here, the examples and commands on the page use what you provided. The namespace, the release name and the values file are your choices, not the chart's.

Scenarios​

The Service, ports and user configured by consumers.

The other components access ClickHouse through the Service address created by the operator, with a name derived from the release, serving the HTTP interface and native protocol.

By default, ClickHouse has only the default user, which only accepts connections from inside the ClickHouse pod; tdpuser, which accepts connections from other pods, is off. So every consumer needs, besides the address, a user accepting connections from other pods. Platform components configure this address and user in their own charts, not this one.

The following scenarios cover S3 storage (scenario 2) and the consumers: Trino, Superset, CloudBeaver, OpenMetadata and Airflow (scenarios 3 to 7).

Service

clickhouse-<RELEASE_NAME>, in the ClickHouse namespace, with the HTTP interface and native protocol.

User

tdpuser, when enabled (clickhouse.tdpUser.enabled), or a less privileged user you create: scenario 3 of Security - ClickHouse.

GitOps kit

The kit integration creates the trino and superset users in ClickHouse. Each password comes from a variable shared with the consumer: TDP_CLICKHOUSE_TRINO_PASSWORD, for example, configures the ClickHouse trino user and Trino's clickhouse catalog.

All consumers through the same Service

namespace <NAMESPACE>Trinoclickhouse catalogSupersetdatasourceCloudBeaverconnectionOpenMetadataDatabase ServiceAirflowlibrariesServiceclickhouse-<RELEASE_NAME>ClickHousepod volumes
  1. Trino. Configured in the Trino chart, with the ClickHouse Service address and a user accepting connections from other pods.
  2. Superset. Configured in the Superset chart, with the ClickHouse Service address and a user accepting connections from other pods.
  3. CloudBeaver. Configured in the CloudBeaver chart, with the ClickHouse Service address and a user accepting connections from other pods.
  4. OpenMetadata. Configured in the OpenMetadata chart, with the ClickHouse Service address and a user accepting connections from other pods.
  5. Airflow. Configured in the Airflow chart, with the ClickHouse Service address and a user accepting connections from other pods.
  6. ClickHouse address. The Service created by the operator, with the HTTP interface and native protocol. Clients sign in with tdpuser or a user you create. Chart default: tdpuser disabled. (clickhouse.tdpUser.enabled)
  7. Where data is stored. Data is stored on the pods' persistent volumes. Chart default: no S3 policy. (clickhouse.extraConfig)
All consumers connect through the same Service. Click an element to see what it is.
Example
# HTTP
clickhouse-<RELEASE_NAME>.<NAMESPACE>.svc.cluster.local:8123

# Native
clickhouse-<RELEASE_NAME>.<NAMESPACE>.svc.cluster.local:9000

Any other client inside the cluster connects the same way: the Service address, the port of its interface, and a user accepting connections from other pods.

When something goes wrong​

Troubleshooting

Paste the error message or choose a symptom. The answer includes the cause, what to do and the command.

  1. Bucket Job fails: Could not connect to S3 endpoint. Cause: The Job cannot reach the TDP-Settings.s3Connection.uri address from the cluster. What to do: Check the endpoint URI and network between the ClickHouse namespace and S3 storage.
  2. Consumer receives AUTHENTICATION_FAILED. Cause: The consumer signs in as default, which only accepts connections from inside the ClickHouse pod. What to do: Configure tdpuser or a user you create in the consumer. See scenario 3 of Security - ClickHouse.
  3. The bucket exists, but ClickHouse does not write to it. Cause: The Job and ClickHouse policy are configured in different places and may point to different endpoints, buckets or keys. What to do: Keep extraConfig consistent with TDP-Settings.s3Connection: same endpoint, bucket and keys.

Integration parameters​

Filter by name or group. The chart prefix is already filled in. Keys without a prefix belong at the root of the values file.

8 of 8 parameters

ParameterDescriptionChart default
TDP-Settings.s3Connection.enabledS3Job creating the bucket before installation and each upgradefalse
TDP-Settings.s3Connection.bucketS3Bucket name""
TDP-Settings.s3Connection.accessKeyS3S3 access key""
TDP-Settings.s3Connection.secretKeyS3S3 secret key""
TDP-Settings.s3Connection.uriS3S3 endpoint URI""
TDP-Settings.s3Connection.selfSignedS3S3 endpoint with a self-signed certificatefalse
tdp-clickhouse.clickhouse.extraConfigClickHouseAdditional server configuration (XML), with the S3 storage policynot set
tdp-clickhouse.clickhouse.tdpUser.enabledClickHouseCreates tdpuser, the consumers' userfalse

Next steps​