openreplay/scripts/helmcharts/databases/charts/clickhouse/values.yaml
rjshrjndrn 3272f5b9fd refactor(clickhouse): split server and user config
Split the ClickHouse configuration into separate ConfigMaps for server
and user configurations. This allows more granular management of the
different configuration types and proper mounting to their respective
paths.

- Created separate serverConfig and userConfig under configOverride
- Added user-default.xml under userConfig
- Updated StatefulSet to mount each ConfigMap separately

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
2025-04-11 17:20:26 +02:00

113 lines
2.8 KiB
YAML

# Default values for clickhouse.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: clickhouse/clickhouse-server
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "23.8.2.7-alpine"
backupImage:
repository: alexakulov/clickhouse-backup
pullPolicy: IfNotPresent
tag: "latest"
username: default
password: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
env: {}
backupEnv:
API_LISTEN: "0.0.0.0:7171"
BACKUPS_TO_KEEP_LOCAL: "1"
CLICKHOUSE_HOST: "localhost"
CLICKHOUSE_PORT: "9000"
# REMOTE_STORAGE=s3
# S3_ACCESS_KEY=key
# S3_SECRET_KEY=password
# LOG_LEVEL=debug
# ALLOW_EMPTY_BACKUPS="true"
# API_LISTEN=0.0.0.0:7171
# API_CREATE_INTEGRATION_TABLES="true"
# BACKUPS_TO_KEEP_REMOTE="3"
# S3_ACL=private
# S3_ENDPOINT=http://minio.db.svc.cluster.local:9000
# S3_BUCKET=clickhouse
# S3_PATH=backup
# S3_FORCE_PATH_STYLE="true"
# S3_DISABLE_SSL="true"
# S3_DEBUG="true"
service:
webPort: 9000
dataPort: 8123
resources:
requests: {}
# cpu: 1
# memory: 4Gi
limits: {}
nodeSelector: {}
tolerations: []
affinity: {}
storageSize: 100Gi
configOverride:
serverConfig:
zzoverride.xml: |-
# <clickhouse>
# <logger>
# <level>information</level>
# <console>true</console>
# <log remove="remove"></log>
# <errorlog remove="remove"></errorlog>
# </logger>
# <listen_host>0.0.0.0</listen_host>
# <keep_alive_timeout>100</keep_alive_timeout>
# <concurrent_threads_soft_limit_num>64</concurrent_threads_soft_limit_num>
# <concurrent_threads_soft_limit_ratio_to_cores>2</concurrent_threads_soft_limit_ratio_to_cores>
# <concurrent_threads_scheduler>fair_round_robin</concurrent_threads_scheduler>
# <max_server_memory_usage>102400000000</max_server_memory_usage>
# <max_thread_pool_size>10000</max_thread_pool_size>
# <max_server_memory_usage_to_ram_ratio>0.8</max_server_memory_usage_to_ram_ratio>
# <uncompressed_cache_size remove="remove"></uncompressed_cache_size>
# <mmap_cache_size>26214</mmap_cache_size>
# </clickhouse>
# another-config.xml: |-
# <clickhouse>
# <another_setting>value</another_setting>
# </clickhouse>
userConfig:
user-default.xml: |-