DirectorySecurity AdvisoriesPricing
Sign in
Directory
clickhouse-keeper logoHELM

clickhouse-keeper

Helm chart
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart versions
Default values
Chart metadata
Images

Tag:

1
# must be an odd number
2
replicaCount: 1
3
image:
4
repository: cgr.dev/scratch-images/test-tmp/clickhouse-keeper
5
pullPolicy: IfNotPresent
6
# Overrides the image tag whose default is the chart appVersion.
7
tag: 26.5.6.64-r0@sha256:65df3fef29783d2b270391979d5149fa63a4760e12226f2b9d4c987f645884ac
8
imagePullSecrets: []
9
nameOverride: ""
10
fullnameOverride: ""
11
keeperConfig: |
12
<clickhouse>
13
<include_from>/tmp/clickhouse-keeper/config.d/generated-keeper-settings.xml</include_from>
14
<path>/var/lib/clickhouse-keeper</path>
15
<logger>
16
<level>trace</level>
17
<console>true</console>
18
</logger>
19
<listen_host>0.0.0.0</listen_host>
20
<keeper_server incl="keeper_server">
21
<tcp_port>2181</tcp_port>
22
<four_letter_word_white_list>*</four_letter_word_white_list>
23
<coordination_settings>
24
<raft_logs_level>information</raft_logs_level>
25
</coordination_settings>
26
</keeper_server>
27
<prometheus>
28
<endpoint>/metrics</endpoint>
29
<port>7000</port>
30
<metrics>true</metrics>
31
<events>true</events>
32
<asynchronous_metrics>true</asynchronous_metrics>
33
<!-- https://github.com/ClickHouse/ClickHouse/issues/46136 -->
34
<status_info>false</status_info>
35
</prometheus>
36
</clickhouse>
37
command: |
38
HOST=`hostname -s` &&
39
DOMAIN=`hostname -d` &&
40
if [[ $HOST =~ (.*)-([0-9]+)$ ]]; then
41
NAME=${BASH_REMATCH[1]}
42
ORD=${BASH_REMATCH[2]}
43
else
44
echo "Failed to parse name and ordinal of Pod"
45
exit 1
46
fi &&
47
export MY_ID=$((ORD+1)) &&
48
mkdir -p /tmp/clickhouse-keeper/config.d/ &&
49
{
50
echo "<yandex><keeper_server>"
51
echo "<server_id>${MY_ID}</server_id>"
52
echo "<raft_configuration>"
53
for (( i=1; i<=$SERVERS; i++ )); do
54
echo "<server><id>${i}</id><hostname>$NAME-$((i-1)).${DOMAIN}</hostname><port>${RAFT_PORT}</port></server>"
55
done
56
echo "</raft_configuration>"
57
echo "</keeper_server></yandex>"
58
} > /tmp/clickhouse-keeper/config.d/generated-keeper-settings.xml &&
59
cat /tmp/clickhouse-keeper/config.d/generated-keeper-settings.xml &&
60
if [[ "1" == "$MY_ID" ]]; then
61
clickhouse-keeper --config-file=/etc/clickhouse-keeper/keeper_config.xml --force-recovery
62
else
63
clickhouse-keeper --config-file=/etc/clickhouse-keeper/keeper_config.xml
64
fi
65
livenessProbe:
66
exec:
67
command:
68
- bash
69
- -xc
70
- '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'
71
initialDelaySeconds: 20
72
timeoutSeconds: 15
73
persistence:
74
## persistence.persistence.enabled -- enabling persistence
75
##
76
enabled: true
77
## persistence.persistence.size -- Volume size
78
##
79
size: 10Gi
80
##
81
accessMode: ReadWriteOnce
82
## persistence.persistence.storageClass -- Storage class for PV (e.g. gp2, standard, ...)
83
##
84
storageClass: ""
85
podAnnotations: {}
86
podLabels: {}
87
podSecurityContext:
88
runAsUser: 101
89
runAsGroup: 101
90
fsGroup: 101
91
securityContext: {}
92
service:
93
type: ClusterIP
94
port: 7000
95
ingress:
96
enabled: false
97
className: ""
98
annotations: {}
99
# kubernetes.io/ingress.class: nginx
100
# kubernetes.io/tls-acme: "true"
101
hosts:
102
- host: chart-example.local
103
paths:
104
- path: /
105
pathType: ImplementationSpecific
106
tls: []
107
# - secretName: chart-example-tls
108
# hosts:
109
# - chart-example.local
110
resources: {}
111
# We usually recommend not to specify default resources and to leave this as a conscious
112
# choice for the user. This also increases chances charts run on environments with little
113
# resources, such as Minikube. If you do want to specify resources, uncomment the following
114
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
115
# limits:
116
# cpu: 100m
117
# memory: 128Mi
118
# requests:
119
# cpu: 100m
120
# memory: 128Mi
121
122
# Additional volumes on the output Deployment definition.
123
volumes: []
124
# - name: foo
125
# secret:
126
# secretName: mysecret
127
# optional: false
128
129
# Additional volumeMounts on the output Deployment definition.
130
volumeMounts: []
131
# - name: foo
132
# mountPath: "/etc/foo"
133
# readOnly: true
134
135
nodeSelector: {}
136
tolerations: []
137
affinity: {}
138

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.