clickhouse

by pascaliske

Helm chartv1.0.0App 24.12.6.70-alpineVerified publisher

A Helm chart for ClickHouse

About this chart

clickhouse

A Helm chart for ClickHouse

Requirements

  • helm - Refer to their docs to get started.

Usage

To use this chart add the repo as follows:

helm repo add pascaliske https://charts.pascaliske.dev

If you had already added this repo earlier, run helm repo update to retrieve the latest versions of the packages.

To install this chart simply run the following command:

helm install clickhouse pascaliske/clickhouse

To uninstall this chart simply run the following command:

helm delete clickhouse

Values

The following values can be used to adjust the helm chart.

KeyTypeDefaultDescription
affinityobject{}Pod-level affinity. More info here.
configMap.annotationsobject{}Additional annotations for the config map object.
configMap.createbooltrueCreate a new config map object.
configMap.existingConfigMapstring""Use an existing config map object.
configMap.filesobject{}Map of configuration files as strings.
configMap.labelsobject{}Additional labels for the config map object.
configMap.mountPathstring"/etc/config"Mount path of the config map object.
controller.annotationsobject{}Additional annotations for the controller object.
controller.enabledbooltrueCreate a workload for this chart.
controller.kindstring"StatefulSet"Type of the workload object.
controller.labelsobject{}Additional labels for the controller object.
controller.replicasint1The number of replicas.
controller.updateStrategyobject{}The controller update strategy. Currently only applies to controllers of kind Deployment.
env[0]object{"name":"TZ","value":"UTC"}Timezone for the container.
extraArgslist[]List of extra arguments for the container.
extraContainersobject{}Specify any extra containers here as dictionary items - each should have its own key.
extraInitContainersobject{}Specify any extra init containers here as dictionary items - each should have its own key.
extraObjectslist[]Specify extra objects.
extraVolumeMountslist[]Specify extra volume mounts for the default containers.
extraVolumeslist[]Specify extra volumes for the workload.
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"The pull policy for the controller.
image.registrystring"docker.io"The registry to pull the image from.
image.repositorystring"clickhouse/clickhouse-server"The repository to pull the image from.
image.tagstring.Chart.AppVersionThe docker tag, if left empty chart's appVersion will be used.
imagePullSecretslist[]
nameOverridestring""
nodeSelectorobject{}Pod-level node selector. More info here.
persistentVolumeClaim.accessModestring"ReadWriteOnce"Access mode of the persistent volume claim object.
persistentVolumeClaim.annotationsobject{}Additional annotations for the persistent volume claim object.
persistentVolumeClaim.createbooltrueCreate a new persistent volume claim object.
persistentVolumeClaim.existingPersistentVolumeClaimstring""Use an existing persistent volume claim object.
persistentVolumeClaim.labelsobject{}Additional labels for the persistent volume claim object.
persistentVolumeClaim.mountPathstring"/var/lib/clickhouse"Mount path of the persistent volume claim object.
persistentVolumeClaim.sizestring"1Gi"Storage request size for the persistent volume claim object.
persistentVolumeClaim.storageClassNamestring""Storage class name for the persistent volume claim object.
persistentVolumeClaim.volumeModestring"Filesystem"Volume mode of the persistent volume claim object.
podSecurityContextobject{"fsGroup":101,"runAsGroup":101,"runAsNonRoot":true,"runAsUser":101}Pod-level security attributes. More info here.
ports.rest.enabledbooltrueEnable the port inside the Controller and Service objects.
ports.rest.nodePortstringnilThe external port used if .service.type == NodePort.
ports.rest.portint8123The port used as internal port and cluster-wide port if .service.type == ClusterIP.
ports.rest.protocolstring"TCP"The protocol used for the service.
ports.rpc.enabledbooltrueEnable the port inside the Controller and Service objects.
ports.rpc.nodePortstringnilThe external port used if .service.type == NodePort.
ports.rpc.portint9000The port used as internal port and cluster-wide port if .service.type == ClusterIP.
ports.rpc.protocolstring"TCP"The protocol used for the service.
priorityClassNamestring""Optional priority class name to be used for pods.
resourcesobject{}Compute resources used by the container. More info here.
securityContextobject{}Container-level security attributes. More info here.
service.annotationsobject{}Additional annotations for the service object.
service.clusterIPstring""ClusterIP used if service type is ClusterIP.
service.enabledbooltrueCreate a service for exposing this chart.
service.labelsobject{}Additional labels for the service object.
service.loadBalancerIPstring""LoadBalancerIP if service type is LoadBalancer.
service.loadBalancerSourceRangeslist[]Allowed addresses when service type is LoadBalancer.
service.typestring"ClusterIP"The service type used.
serviceAccount.annotationsobject{}Additional annotations for the role and role binding objects.
serviceAccount.createbooltrueCreate a ServiceAccount object.
serviceAccount.labelsobject{}Additional labels for the role and role binding objects.
serviceAccount.namestring""Specify the service account used for the controller.
tolerationslist[]Pod-level tolerations. More info here.

Maintainers

NameEmailUrl
pascaliske[email protected]https://pascaliske.dev

License

MIT – © 2026 Pascal Iske

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 v1.0.0 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