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
|
2022-11-18 01:41:25 +00:00
|
|
|
tag: 22.11.1.1360@sha256:b6c13efe6acbd1bec9228b482b428019b039dbec602cf808944f28b9abaab0bb
|
2022-07-10 09:33:51 +00:00
|
|
|
|
|
|
|
controller:
|
|
|
|
type: statefulset
|
|
|
|
strategy: RollingUpdate
|
|
|
|
rollingUpdate:
|
|
|
|
unavailable: 1
|
|
|
|
|
|
|
|
securityContext:
|
|
|
|
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
|
|
|
|
|
|
|
|
volumeClaimTemplates:
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: /var/lib/clickhouse
|
|
|
|
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
type: HTTP
|
|
|
|
path: /ping
|
|
|
|
readiness:
|
|
|
|
type: HTTP
|
|
|
|
path: /ping
|
|
|
|
startup:
|
|
|
|
type: HTTP
|
|
|
|
path: /ping
|
|
|
|
|
|
|
|
clickhouseDatabase: "test"
|
|
|
|
clickhouseUsername: "test"
|
|
|
|
clickhousePassword: "testpass"
|
|
|
|
clickhouseDefaultAccessManagement: 0
|
|
|
|
existingSecret: ""
|
|
|
|
|
|
|
|
secret:
|
|
|
|
credentials:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
clickhouse-password: '{{ ( .Values.clickhousePassword | default "empty" ) }}'
|
|
|
|
|
|
|
|
env:
|
|
|
|
CLICKHOUSE_DB: "{{ .Values.clickhouseDatabase }}"
|
|
|
|
CLICKHOUSE_USER: "{{ .Values.clickhouseUsername }}"
|
|
|
|
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "{{ .Values.clickhouseDefaultAccessManagement }}"
|
|
|
|
CLICKHOUSE_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: '{{ .Values.existingSecret | default ( printf "%s-credentials" ( include "tc.common.names.fullname" . ) ) }}'
|
|
|
|
key: "clickhouse-password"
|
2022-08-08 21:25:02 +00:00
|
|
|
|
|
|
|
portal:
|
|
|
|
enabled: false
|