ClickHouse Helm Chart
Clone or download
Latest commit 9e12d90 Jan 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
clickhouse A fix for the email Jan 4, 2019
README.md Add Graphite integration Jan 2, 2019
sample-schema.sql Add Graphite integration Jan 2, 2019

README.md

ClickHouse Helm Chart

Fully functioning replicated ClickHouse environment. Client and Tabix UI included. By default there are 2 replicas.

It's also important to create replicated tables correctly, you may check sample schema in sample-schema.sql, which you have to execute on each node.

Run

helm install -f ./clickhouse/values.yaml --name ch --namespace=default ./clickhouse

Client

Works if clickhouse.withClient is true.

Log into container:

kubectl exec -it $(kubectl get pod -l app=clickhouse-client -o jsonpath="{.items[0].metadata.name}") -- /bin/bash

Connect to CH node:

When using LB:

/usr/bin/clickhouse-client --host clickhouse-lb.default.svc.cluster.local

Otherwise:

/usr/bin/clickhouse-client --host clickhouse-0.clickhouse.default.svc.cluster.local

Tabix UI

Works if tabix.enabled is true.

This chart includes tabix.io as UI if you need it.

If LB is eanbled it will be running on localhost:8088

  • name: dev
  • host:port: http://localhost:8123
  • login: reader
  • password: gFzFTUQ9
  • Enable HTTP Base Auth

Monitoring with Graphite

Works when graphite.enabled is set to true.

If LB is eanbled it will be running on localhost:8080/dashboard

Users

  • writer / 2c82mirS
  • reader / gFzFTUQ9

Build Docker image

docker build -t clickhouse-server ./clickhouse/docker

Purge

helm del --purge ch