feat(clickhouse): add standalone ClickHouse chart + Keeper (ENT-3986)#63
Open
ixxeL2097 wants to merge 3 commits into
Open
feat(clickhouse): add standalone ClickHouse chart + Keeper (ENT-3986)#63ixxeL2097 wants to merge 3 commits into
ixxeL2097 wants to merge 3 commits into
Conversation
…replicated cluster) Extends the replicated CloudPirates chart (PR CloudPirates-io#1199, standalone) with an opt-in ClickHouse Keeper quorum so ReplicatedMergeTree / ON CLUSTER are testable: - templates/keeper/{statefulset,configmap,headless-service,service,pdb}.yaml: dedicated Keeper StatefulSet (per-pod server_id from the pod ordinal), Raft config ConfigMap, headless service for stable member DNS, client service (9181). - When keeper.enabled, wire ClickHouse: <zookeeper>, single-shard <remote_servers> across the replicas, per-pod <macros> (replica from POD_NAME), and <interserver_http_credentials> for replication. - app.kubernetes.io/component (server/keeper) to isolate the two workloads' selectors. - values: keeper.* (opt-in, replicaCount 3), cluster.name, clusterDomain, config.interserverHttpPort; regenerated values.schema.json; keeper unittest; v0.2.0.
Allows Helm template expressions (e.g. {{ "{{ .Release.Namespace }}" }}) inside the
extra config snippets — needed to set a per-release S3 prefix on the storage disk.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes ENT-3986.
What
Adds a ClickHouse chart to the fork, in two commits:
cloudpiratescommon lib (v0.1.0).ReplicatedMergeTree/ON CLUSTERis testable.ClickHouse Keeper extension
templates/keeper/: dedicated Keeper StatefulSet (per-podserver_idfrom the pod ordinal), Raft config ConfigMap, headless service (stable member DNS), client service (9181), opt-in PDB.keeper.enabled=true: ClickHouse is wired with<zookeeper>, a single-shard<remote_servers>cluster across the replicas, per-pod<macros>(POD_NAME), and<interserver_http_credentials>.app.kubernetes.io/component(server/keeper) isolates the two workloads' selectors.keeper.enabled: falseby default → standalone, identical to upstream);replicaCount: 3Raft quorum when enabled. Chart bumped to v0.2.0.Validation
helm lint --strict✅ ·helm unittest✅ (35 tests) ·helm templatewith keeper enabled renders the Keeper StatefulSet, Raft config (correct DNS/ids) and the cluster wiring.