2022-07-10 09:33:51 +00:00
|
|
|
image:
|
2022-07-11 09:41:45 +00:00
|
|
|
repository: tccr.io/truecharts/clickhouse
|
2022-07-10 09:33:51 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2023-09-27 20:39:15 +00:00
|
|
|
tag: v23.8.3.48@sha256:6dfb2322a26e5990b908cc3f49ceee230b241a67e791886ec76965df1a8aff11
|
2022-07-10 09:33:51 +00:00
|
|
|
|
2023-03-01 15:48:43 +00:00
|
|
|
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:
|
2023-03-05 17:15:26 +00:00
|
|
|
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 }}'
|
2023-03-01 15:48:43 +00:00
|
|
|
key: "clickhouse-password"
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
type: http
|
|
|
|
path: /ping
|
|
|
|
readiness:
|
|
|
|
type: http
|
|
|
|
path: /ping
|
|
|
|
startup:
|
|
|
|
type: http
|
|
|
|
path: /ping
|
2022-07-10 09:33:51 +00:00
|
|
|
|
|
|
|
securityContext:
|
2023-03-01 15:48:43 +00:00
|
|
|
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
|
2022-07-10 09:33:51 +00:00
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 8123
|
2023-03-01 15:48:43 +00:00
|
|
|
protocol: http
|
2022-07-10 09:33:51 +00:00
|
|
|
targetPort: 8123
|
|
|
|
|
2023-03-19 17:21:22 +00:00
|
|
|
persistence:
|
2022-07-10 09:33:51 +00:00
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: /var/lib/clickhouse
|
|
|
|
|
|
|
|
clickhouseDatabase: "test"
|
|
|
|
clickhouseUsername: "test"
|
|
|
|
clickhouseDefaultAccessManagement: 0
|
2023-03-05 17:15:26 +00:00
|
|
|
|
|
|
|
# -- Secret or password
|
|
|
|
# One of these options is required, unless used as a dependency for another TrueCharts chart.
|
|
|
|
clickhousePassword: ""
|
2022-07-10 09:33:51 +00:00
|
|
|
existingSecret: ""
|
|
|
|
|
|
|
|
secret:
|
|
|
|
credentials:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
clickhouse-password: '{{ ( .Values.clickhousePassword | default "empty" ) }}'
|
|
|
|
|
2022-08-08 21:25:02 +00:00
|
|
|
portal:
|
2023-03-01 15:48:43 +00:00
|
|
|
open:
|
|
|
|
enabled: false
|
2023-01-15 13:44:57 +00:00
|
|
|
|
2023-03-01 22:24:09 +00:00
|
|
|
manifestManager:
|
2023-01-15 13:44:57 +00:00
|
|
|
enabled: false
|