Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plutov/clickhouse-helm
ClickHouse Helm Chart
https://github.com/plutov/clickhouse-helm
clickhouse helm helm-charts k8s
Last synced: 21 days ago
JSON representation
ClickHouse Helm Chart
- Host: GitHub
- URL: https://github.com/plutov/clickhouse-helm
- Owner: plutov
- Created: 2018-12-16T15:07:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T19:53:53.000Z (over 2 years ago)
- Last Synced: 2024-08-03T18:20:55.888Z (3 months ago)
- Topics: clickhouse, helm, helm-charts, k8s
- Language: Dockerfile
- Size: 20.5 KB
- Stars: 67
- Watchers: 3
- Forks: 36
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-clickhouse - plutov/clickhouse-helm - This project provides a Helm Chart for deploying a replicated ClickHouse environment in Kubernetes. (Integrations / Deployment and Management Tools)
README
# ClickHouse Helm Chart
Fully functioning replicated ClickHouse environment. CLI, Graphite 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 (`CREATE` queries are not replicated in ClickHouse).
## Run
```bash
helm install -f ./clickhouse/values.yaml --name ch --namespace=default ./clickhouse
```## Client
Works if `client.enabled` is `true`.
Log into container:
```bash
kubectl exec -it $(kubectl get pod -l app=clickhouse-client -o jsonpath="{.items[0].metadata.name}") -- /bin/bash
```Connect to CH node:
```bash
/usr/bin/clickhouse-client --host clickhouse-0.clickhouse
```## Tabix UI
Works if `tabix.enabled` is `true`.
This chart includes [tabix.io](https://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 `true`.
If LB is eanbled it will be running on [http://localhost:8080/dashboard](http://localhost:8080/dashboard)
## Users
- writer / 2c82mirS
- reader / gFzFTUQ9## Build Docker image
```bash
docker build -t clickhouse-server ./clickhouse/docker
```## Purge
```bash
helm del --purge ch
```Don't forget to delete ClickHouse and Zookeeper PVCs.