Skip to content

Commit c0e9bec

Browse files
committed
chore(clickhouse): add plans
1 parent 7e1b719 commit c0e9bec

9 files changed

Lines changed: 136 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ containerSecurityContext:
212212
## @param auth.existingSecretKey Name of the key inside the existing secret
213213
##
214214
auth:
215-
username: default
215+
username: administrator
216216
password: ""
217217
existingSecret: ""
218218
existingSecretKey: ""
@@ -898,7 +898,7 @@ serviceAccount:
898898
metrics:
899899
## @param metrics.enabled Enable the export of Prometheus metrics
900900
##
901-
enabled: false
901+
enabled: true
902902
## @param metrics.podAnnotations [object] Annotations for metrics scraping
903903
##
904904
podAnnotations:
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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: 'administrator'
21+
- name: TCP_PORT
22+
value: 9000
23+
- name: HTTP_PORT
24+
value: 8123
25+
- name: MYSQL_PORT
26+
value: 9004
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-2c4g20"
2+
id: 9866afb5-eeb1-4c89-a6d6-01197ff34bbc
3+
description: "clickhouse standard-2c4g20 plan: Disk 20Gi ,vCPUs 2 , RAM 4G "
4+
displayName: "standard-2c4g20"
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-2c4g20
4+
5+
## MinIO® 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® container
12+
## @param resources.requests The requested resources for the MinIO® container
13+
##
14+
resources:
15+
limits:
16+
cpu: 2000m
17+
memory: 4Gi
18+
requests:
19+
cpu: 2000m
20+
memory: 4Gi
21+
22+
persistence:
23+
size: 20Gi
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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: 'administrator'
21+
- name: TCP_PORT
22+
value: 9000
23+
- name: HTTP_PORT
24+
value: 8123
25+
- name: MYSQL_PORT
26+
value: 9004
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-4c16g100"
2+
id: e30e5296-ce38-48cb-981c-9bb1c2e43833
3+
description: "clickhouse standard-4c16g100 plan: Disk 100Gi ,vCPUs c , RAM 16G "
4+
displayName: "standard-4c16g100"
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-4c16g100
4+
5+
## MinIO® 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® container
12+
## @param resources.requests The requested resources for the MinIO® container
13+
##
14+
resources:
15+
limits:
16+
cpu: 4000m
17+
memory: 16Gi
18+
requests:
19+
cpu: 4000m
20+
memory: 16Gi
21+
22+
persistence:
23+
size: 100Gi

0 commit comments

Comments
 (0)