clickhouse-keeper

by duyet

Helm chartv0.1.4App 1.16.0

A ClickHouse Keeper chart for Kubernetes

About this chart

clickhouse-keeper

A ClickHouse Keeper chart for Kubernetes

Values

KeyTypeDefaultDescription
affinityobject{}
commandstring"HOST=hostname -s &&\nDOMAIN=hostname -d &&\nif [[ $HOST =~ (.*)-([0-9]+)$ ]]; then\n NAME=${BASH_REMATCH[1]}\n ORD=${BASH_REMATCH[2]}\nelse\n echo \"Failed to parse name and ordinal of Pod\"\n exit 1\nfi &&\nexport MY_ID=$((ORD+1)) &&\nmkdir -p /tmp/clickhouse-keeper/config.d/ &&\n{\n echo \"<yandex><keeper_server>\"\n echo \"<server_id>${MY_ID}</server_id>\"\n echo \"<raft_configuration>\"\n for (( i=1; i<=$SERVERS; i++ )); do\n echo \"<server><id>${i}</id><hostname>$NAME-$((i-1)).${DOMAIN}</hostname><port>${RAFT_PORT}</port></server>\"\n done\n echo \"</raft_configuration>\"\n echo \"</keeper_server></yandex>\"\n} > /tmp/clickhouse-keeper/config.d/generated-keeper-settings.xml &&\ncat /tmp/clickhouse-keeper/config.d/generated-keeper-settings.xml &&\nif [[ \"1\" == \"$MY_ID\" ]]; then\n clickhouse-keeper --config-file=/etc/clickhouse-keeper/keeper_config.xml --force-recovery\nelse\n clickhouse-keeper --config-file=/etc/clickhouse-keeper/keeper_config.xml\nfi\n"
fullnameOverridestring""
image.pullPolicystring"Always"Always refresh the floating head-alpine tag when a pod starts.
image.repositorystring"clickhouse/clickhouse-keeper"
image.tagstring"head-alpine"
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
keeperConfigstring"<clickhouse>\n <include_from>/tmp/clickhouse-keeper/config.d/generated-keeper-settings.xml</include_from>\n <logger>\n <level>trace</level>\n <console>true</console>\n </logger>\n <listen_host>0.0.0.0</listen_host>\n <keeper_server incl=\"keeper_server\">\n <path>/var/lib/clickhouse-keeper</path>\n <tcp_port>2181</tcp_port>\n <four_letter_word_white_list>*</four_letter_word_white_list>\n <coordination_settings>\n <!-- <raft_logs_level>trace</raft_logs_level> -->\n <raft_logs_level>information</raft_logs_level>\n </coordination_settings>\n </keeper_server>\n <prometheus>\n <endpoint>/metrics</endpoint>\n <port>7000</port>\n <metrics>true</metrics>\n <events>true</events>\n <asynchronous_metrics>true</asynchronous_metrics>\n <!-- https://github.com/ClickHouse/ClickHouse/issues/46136 -->\n <status_info>false</status_info>\n </prometheus>\n</clickhouse>\n"
livenessProbe.exec.command[0]string"bash"
livenessProbe.exec.command[1]string"-xc"
livenessProbe.exec.command[2]string"date && OK=$(exec 3<>/dev/tcp/127.0.0.1/2181 ; printf \"ruok\" >&3 ; IFS=; tee <&3; exec 3<&- ;); if [[ \"$OK\" == \"imok\" ]]; then exit 0; else exit 1; fi"
livenessProbe.initialDelaySecondsint20
livenessProbe.timeoutSecondsint15
nameOverridestring""
nodeSelectorobject{}
persistence.accessModestring"ReadWriteOnce"
persistence.enabledbooltrue
persistence.existingClaimstring""
persistence.sizestring"10Gi"
persistence.storageClassstring""
podAnnotationsobject{}
podLabelsobject{}
podSecurityContextobject{}
replicaCountint3
resourcesobject{}
securityContextobject{}
service.portint7000
service.typestring"ClusterIP"
tolerationslist[]
volumeMountslist[]
volumeslist[]

Autogenerated from chart metadata using helm-docs v1.11.3

Deploy clickhouse-keeper with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has clickhouse-keeper 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-keeper is pinned at v0.1.4 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