Skip to content

Commit 399ed9c

Browse files
authored
chore(clickhouse): add plans
1 parent 1544d17 commit 399ed9c

9 files changed

Lines changed: 73 additions & 7 deletions

File tree

addons/clickhouse/24/chart/clickhouse/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ defaultConfigurationOverrides: |
294294
<cluster>
295295
{{- $shards := $.Values.shards | int }}
296296
{{- range $shard, $e := until $shards }}
297+
<internal_replication>true</internal_replication>
297298
<shard>
298299
{{- $replicas := $.Values.replicaCount | int }}
299300
{{- range $i, $_e := until $replicas }}

addons/clickhouse/24/plans/standard-16c64g1000/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ resources:
1616
cpu: 16000m
1717
memory: 64Gi
1818
requests:
19-
cpu: 16000m
20-
memory: 64Gi
19+
cpu: 4000m
20+
memory: 16Gi
2121

2222
persistence:
2323
size: 1000Gi
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
credential:
2+
{{- if (eq .Values.service.type "LoadBalancer") }}
3+
- name: {{ printf "EXTRANET_HOST" }}
4+
valueFrom:
5+
serviceRef:
6+
name: {{ include "common.names.fullname" . }}
7+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
8+
{{- end }}
9+
- name: {{ printf "HOST" }}
10+
valueFrom:
11+
serviceRef:
12+
name: {{ include "common.names.fullname" . }}
13+
jsonpath: '{ .spec.clusterIP }'
14+
- name: PASSWORD
15+
valueFrom:
16+
secretKeyRef:
17+
name: {{ template "common.names.fullname" . }}
18+
jsonpath: '{ .data.admin-password }'
19+
- name: USERNAME
20+
value: '{{ .Values.auth.username }}'
21+
- name: TCP_PORT
22+
value: 9000
23+
- name: HTTP_PORT
24+
value: 8123
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"imagePullPolicy": {
6+
"type": "string",
7+
"enum": ["Always", "IfNotPresent", "Never"],
8+
"default": "IfNotPresent",
9+
"title": "Image pull policy"
10+
}
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "standard-32c64g12000"
2+
id: 24a85352-a7e0-11ef-8a06-ef08afb2fad9
3+
description: "clickhouse standard-32c64g12000 plan: Disk 12000Gi ,vCPUs 32 , RAM 64G "
4+
displayName: "standard-32c64g12000"
5+
bindable: true
6+
maximum_polling_duration: 1800
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## @param fullnameOverride String to fully override common.names.fullname template
2+
##
3+
fullnameOverride: hb-clickhouse-cluster-standard-32c64g12000
4+
5+
## MinIO&reg; containers' resource requests and limits
6+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
7+
## We usually recommend not to specify default resources and to leave this as a conscious
8+
## choice for the user. This also increases chances charts run on environments with little
9+
## resources, such as Minikube. If you do want to specify resources, uncomment the following
10+
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
11+
## @param resources.limits The resources limits for the MinIO&reg; container
12+
## @param resources.requests The requested resources for the MinIO&reg; container
13+
##
14+
resources:
15+
limits:
16+
cpu: 32000m
17+
memory: 64Gi
18+
requests:
19+
cpu: 8000m
20+
memory: 16Gi
21+
22+
persistence:
23+
size: 12000Gi

addons/clickhouse/24/plans/standard-4c16g100/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ resources:
1616
cpu: 4000m
1717
memory: 16Gi
1818
requests:
19-
cpu: 4000m
20-
memory: 16Gi
19+
cpu: 2000m
20+
memory: 4Gi
2121

2222
persistence:
2323
size: 100Gi

addons/clickhouse/24/plans/standard-8c32g500/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ resources:
1616
cpu: 8000m
1717
memory: 32Gi
1818
requests:
19-
cpu: 8000m
20-
memory: 32Gi
19+
cpu: 2000m
20+
memory: 8Gi
2121

2222
persistence:
2323
size: 500Gi

addons/grafana/10/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tags: grafana
1313
bindable: true
1414
instances_retrievable: true
1515
bindings_retrievable: true
16-
plan_updateable: true
16+
plan_updateable: false
1717
allow_parameters:
1818
- name: "networkPolicy.allowNamespaces"
1919
required: false

0 commit comments

Comments
 (0)