79 lines
2.3 KiB
YAML
79 lines
2.3 KiB
YAML
image:
|
|
repository: tccr.io/truecharts/clickhouse
|
|
pullPolicy: IfNotPresent
|
|
tag: v23.7.5.30@sha256:cdc9db0a9e09bc93e2011257a64058e3fb8136816ede056b7c833d49d5cf5463
|
|
|
|
workload:
|
|
main:
|
|
replicas: 1
|
|
podSpec:
|
|
containers:
|
|
main:
|
|
env:
|
|
CLICKHOUSE_DB: "{{ .Values.clickhouseDatabase }}"
|
|
CLICKHOUSE_USER: "{{ .Values.clickhouseUsername }}"
|
|
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "{{ .Values.clickhouseDefaultAccessManagement }}"
|
|
CLICKHOUSE_PASSWORD:
|
|
secretKeyRef:
|
|
expandObjectName: "{{ if .Values.clickhousePassword }}true{{ else }}false{{ end }}"
|
|
name: '{{ if .Values.clickhousePassword }}credentials{{ else if .Values.existingSecret }}{{ .Values.existingSecret }}{{ else }}{{ printf "%s-%s" .Release.Name "clickhousecreds" }}{{ end }}'
|
|
key: "clickhouse-password"
|
|
probes:
|
|
liveness:
|
|
type: http
|
|
path: /ping
|
|
readiness:
|
|
type: http
|
|
path: /ping
|
|
startup:
|
|
type: http
|
|
path: /ping
|
|
|
|
securityContext:
|
|
container:
|
|
readOnlyRootFilesystem: false
|
|
# Optional capabilities advanced ClickHouse features. See also:
|
|
# https://github.com/ClickHouse/ClickHouse/blob/master/docker/server/README.md#linux-capabilities
|
|
# https://kb.altinity.com/altinity-kb-setup-and-maintenance/altinity-kb-clickhouse-in-docker/
|
|
# https://github.com/ClickHouse/ClickHouse/blob/b844c36a9d5e76300a88b4f49e6debccf1ad22e4/programs/install/Install.cpp#L793-L804
|
|
# capabilities:
|
|
# add:
|
|
# - IPC_LOCK
|
|
# - NET_ADMIN
|
|
# - SYS_NICE
|
|
|
|
service:
|
|
main:
|
|
ports:
|
|
main:
|
|
port: 8123
|
|
protocol: http
|
|
targetPort: 8123
|
|
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
mountPath: /var/lib/clickhouse
|
|
|
|
clickhouseDatabase: "test"
|
|
clickhouseUsername: "test"
|
|
clickhouseDefaultAccessManagement: 0
|
|
|
|
# -- Secret or password
|
|
# One of these options is required, unless used as a dependency for another TrueCharts chart.
|
|
clickhousePassword: ""
|
|
existingSecret: ""
|
|
|
|
secret:
|
|
credentials:
|
|
enabled: true
|
|
data:
|
|
clickhouse-password: '{{ ( .Values.clickhousePassword | default "empty" ) }}'
|
|
|
|
portal:
|
|
open:
|
|
enabled: false
|
|
|
|
manifestManager:
|
|
enabled: false
|