diff --git a/deploy/clickhouse.yaml b/deploy/clickhouse.yaml index 8af4fb06..4e1e3841 100644 --- a/deploy/clickhouse.yaml +++ b/deploy/clickhouse.yaml @@ -40,12 +40,16 @@ spec: mountPath: /var/lib/clickhouse - name: initdb mountPath: /docker-entrypoint-initdb.d + - name: config + mountPath: /etc/clickhouse-server/config.d/memory-tuning.xml + subPath: memory-tuning.xml + readOnly: true resources: requests: memory: "2Gi" cpu: "500m" limits: - memory: "4Gi" + memory: "6Gi" cpu: "2000m" livenessProbe: httpGet: @@ -67,6 +71,9 @@ spec: - name: initdb configMap: name: clickhouse-initdb + - name: config + configMap: + name: clickhouse-config volumeClaimTemplates: - metadata: name: data @@ -95,6 +102,36 @@ spec: --- apiVersion: v1 kind: ConfigMap +metadata: + name: clickhouse-config + namespace: cameleer +data: + memory-tuning.xml: | + + + + + + + + + 2147483648 + + + + + 134217728 + 67108864 + 0 + 67108864 + + + 536870912 + + +--- +apiVersion: v1 +kind: ConfigMap metadata: name: clickhouse-initdb namespace: cameleer