ClickHouse

This reference documents the Kubernetes configuration options for the ClickHouse chart, which provides an analytics database for the Grafbase Enterprise Platform.

All configuration options are nested under the clickhouse key.

You can find the ClickHouse chart source code from the ArtifactHub.

Zookeeper configuration for the ClickHouse cluster.

Defaults:

zookeeper: enabled: false

Number of shards for the ClickHouse cluster.

Defaults:

shards: 1

Kubernetes ReplicationController Docs

Defaults:

replicaCount: 1

List of scripts to run during the ClickHouse initialization.

Defaults:

initdbScripts: create_database.sh: | #!/bin/bash clickhouse-client --user "$CLICKHOUSE_ADMIN_USER" --password "$CLICKHOUSE_ADMIN_PASSWORD" --query "CREATE DATABASE IF NOT EXISTS analytics;"

Authentication configuration for the ClickHouse database.

Defaults:

auth: username: grafbase password: grafbase

Kubernetes Common Annotations

Defaults:

commonAnnotations: 'helm.sh/hook': pre-install 'helm.sh/hook-weight': '-15'

Resource requests and limits for the ClickHouse container.

Defaults:

resources: requests: cpu: 1 memory: 1024Mi limits: cpu: 1 memory: 2048Mi