clickhouse

by HelmForge

Helm chartv2.1.2App 26.10.11Apache-2.0Verified publisher

Fast column-oriented OLAP database with production-safe standalone defaults

About this chart

ClickHouse

Fast column-oriented OLAP database with production-safe standalone defaults.

Installation

helm repo add helmforge https://repo.helmforge.dev
helm install clickhouse helmforge/clickhouse
helm install clickhouse oci://ghcr.io/helmforgedev/helm/clickhouse

Features

  • Official ClickHouse image pinned to 26.10.11 from the stable channel.
  • StatefulSet with persistent data volume.
  • Client Service exposing HTTP 8123 and native TCP 9000 by default.
  • Headless Service for stable pod DNS.
  • Built-in Prometheus metrics endpoint.
  • ServiceMonitor support.
  • External Secrets integration for the chart-configured user's password.
  • NetworkPolicy and dual-stack Service fields.
  • Explicit guardrail blocking unsafe Helm-only replication.

Quick Start

persistence:
  size: 20Gi

Production Example

clickhouse:
  database: analytics
  user: analytics
  existingSecret: clickhouse-auth
persistence:
  size: 200Gi
metrics:
  enabled: true
  serviceMonitor:
    enabled: true
networkPolicy:
  enabled: true

Configuration

ParameterDescriptionDefault
commonAnnotationsAnnotations added to mutable resource metadata except pod and PVC templates{}
replicaCountClickHouse pod count. Must remain 11
image.repositoryOfficial image repositorydocker.io/clickhouse/clickhouse-server
image.tagOfficial full-version tag26.10.11
clickhouse.databaseInitial databasedefault
clickhouse.userUser managed by the image entrypointdefault
clickhouse.passwordPassword managed by the image entrypoint""
persistence.enabledPersist data volumetrue
persistence.sizeData PVC size20Gi
metrics.enabledBuilt-in Prometheus endpointfalse
networkPolicy.enabledRender NetworkPolicyfalse
service.ipFamilyPolicyService dual-stack policy""

service.ports.http, service.ports.tcp, and service.ports.interserver configure both the ClickHouse server listeners and the matching named container and Service ports. Override them only as one contract; clients and NetworkPolicy rules must use the resulting ports.

Examples

  • Standalone
  • Production
  • External Secrets
  • Metrics

Architecture Guides

  • Production
  • Observability
  • External Secrets

Security Scan

Security Scan: clickhouse

FrameworkScore
MITRE + NSA + SOC289.39%

Security posture acceptable.

Local details:

  • Tool: Kubescape v4.0.14
  • Command: kubescape scan framework mitre,nsa,soc2 .tmp/clickhouse-render.yaml
  • Result: 0 critical failed resources, resource summary score 89.39%.

Operator Boundary

ClickHouse replication needs Keeper or ZooKeeper, cluster definitions, and cluster-aware operations. This chart intentionally blocks replicaCount > 1. Use the ClickHouse Operator or Altinity operator stack for sharded or replicated clusters.

Upgrade Notes

The first upgrade to this release may roll the ClickHouse pod because the configuration and Secret checksum representation changed. With the default single replica, plan for brief unavailability. If persistence.enabled is false, replacing the pod also discards its emptyDir data. This is a one-time checksum migration; later changes to commonAnnotations or other resource metadata annotations do not trigger a rollout. Changes to podAnnotations still update the pod template and trigger a rollout.

The 26.10.11 update continues on the stable 26.10 channel and preserves the chart's credentials and standalone storage contract. Take a verified backup, test application queries and restore procedures, and plan rollback before allowing the new patch to write production data. Review the 26.10 release notes.

ClickHouse 26.8.2 follows the monthly 26.7 release and carries the August LTS designation. It changes the default text-index disk format to v2 and updates aggregation, constraint handling, query correctness and merge behavior. Test existing table engines and application queries, take a verified backup, and plan rollback before allowing a new version to write production data. Operators that coordinate mixed-version replicas must review text_index_serialization_version compatibility before enabling the new format; this chart remains standalone. The experimental disk-backed Keeper feature is not enabled by this chart. See the official 26.8 presentation and 26.8.2 release.

Earlier 26.7 releases moved ClickHouse from 26.6 to 26.7 stable. Review the upstream ClickHouse 26.7 release notes and backward-incompatible changes before upgrading production workloads. Important changes include explicit credentials for user SQL that accesses S3, rejection of ZIP/ZIPX backups on object storage, stricter AggregatingMergeTree dimensions, removal of XML resources and workload_classifiers, and startup rejection of legacy insert_deduplication_version values. StatefulSet rolling updates reuse the existing data volume; take a verified backup and test application queries and restore procedures first.

The Helm test now authenticates through the configured Secret, verifies the running version, and executes an EXPLAIN ANALYZE query introduced in 26.7.

Troubleshooting

  • If readiness fails after a port override, confirm the rendered ConfigMap, named container ports, Service ports, and client settings all use the same service.ports.* values.
  • To rotate the chart-configured user, update the referenced Secret and restart the StatefulSet. The official image rewrites users.d/default-user.xml on every start, including with a populated data directory. Test authentication after the restart; users managed separately through SQL retain their own lifecycle.
  • If writes fail, inspect PVC binding, storage permissions for UID/GID 101, available capacity, and ClickHouse server logs.
  • If metrics are unavailable, enable metrics.enabled before enabling the ServiceMonitor and verify that NetworkPolicy permits the scraper.
  • If Helm rejects replicaCount, keep the standalone value at 1 or migrate to an operator-managed topology with Keeper and explicit replication.

Deploy clickhouse with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has clickhouse on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartclickhouse is pinned at v2.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply