Skip to content

Commit 6baf293

Browse files
committed
chore(zookeeper): add 2c4g5w plan
1 parent 73b5866 commit 6baf293

4 files changed

Lines changed: 168 additions & 0 deletions

File tree

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
credential:
2+
{{- if (eq .Values.service.type "LoadBalancer") }}
3+
- name: EXTERNAL_HOST
4+
valueFrom:
5+
serviceRef:
6+
name: {{ template "common.names.fullname" . }}
7+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
8+
{{- end }}
9+
10+
- name: HOST
11+
valueFrom:
12+
serviceRef:
13+
name: {{ template "common.names.fullname" . }}
14+
jsonpath: '{ .spec.clusterIP }'
15+
16+
{{- if not .Values.service.disableBaseClientPort }}
17+
- name: TCP_CLIENT_PORT
18+
valueFrom:
19+
serviceRef:
20+
name: {{ template "common.names.fullname" . }}
21+
jsonpath: '{ .spec.ports[?(@.name=="tcp-client")].port }'
22+
{{- end }}
23+
24+
{{- if .Values.tls.client.enabled }}
25+
- name: TCP_CLIENTT_TLS_PORT
26+
valueFrom:
27+
serviceRef:
28+
name: {{ template "common.names.fullname" . }}
29+
jsonpath: '{ .spec.ports[?(@.name=="tcp-client-tls")].port }'
30+
{{- end }}
31+
32+
{{- if .Values.auth.client.enabled }}
33+
- name: ZOO_CLIENT_USER
34+
value: {{ .Values.auth.client.clientUser | quote }}
35+
36+
- name: ZOO_SERVER_USERS
37+
value: {{ .Values.auth.client.serverUsers | quote }}
38+
{{- end }}
39+
40+
{{- if (include "zookeeper.client.createSecret" .) }}
41+
- name: CLIENT_PASSWORD
42+
valueFrom:
43+
secretKeyRef:
44+
name: {{ printf "%s-client-auth" (include "common.names.fullname" .) }}
45+
jsonpath: '{ .data.client-password }'
46+
47+
- name: SERVER_PASSWORD
48+
valueFrom:
49+
secretKeyRef:
50+
name: {{ printf "%s-client-auth" (include "common.names.fullname" .) }}
51+
jsonpath: '{ .data.server-password }'
52+
{{- end }}
53+
54+
{{- if .Values.auth.quorum.enabled }}
55+
- name: QUORUM_LEARNER_USER
56+
value: {{ .Values.auth.quorum.learnerUser | quote }}
57+
58+
- name: QUORUM_SERVER_USER
59+
value: {{ .Values.auth.quorum.serverUsers | quote }}
60+
{{- end }}
61+
62+
{{- if (include "zookeeper.quorum.createSecret" .) }}
63+
- name: QUORUM_LEARNER_PASSWORD
64+
valueFrom:
65+
secretKeyRef:
66+
name: {{ printf "%s-quorum-auth" (include "common.names.fullname" .) }}
67+
jsonpath: '{ .data.quorum-learner-password }'
68+
69+
- name: QUORUM_SERVER_PASSWORD
70+
valueFrom:
71+
secretKeyRef:
72+
name: {{ printf "%s-quorum-auth" (include "common.names.fullname" .) }}
73+
jsonpath: '{ .data.quorum-server-password }'
74+
{{- end }}
75+
76+
{{- if (include "zookeeper.client.createTlsPasswordsSecret" .) }}
77+
- name: CLIENT_KEYSTORE_PASSWORD
78+
valueFrom:
79+
secretKeyRef:
80+
name: {{ template "common.names.fullname" . }}-client-tls-pass
81+
jsonpath: '{ .data.keystore-password }'
82+
83+
- name: CLIENT_TRUSTSTORE_PASSWORD
84+
valueFrom:
85+
secretKeyRef:
86+
name: {{ template "common.names.fullname" . }}-client-tls-pass
87+
jsonpath: '{ .data.truststore-password }'
88+
{{- end }}
89+
90+
{{- if (include "zookeeper.quorum.createTlsPasswordsSecret" .) }}
91+
- name: QUORUM_KEYSTORE_PASSWORD
92+
valueFrom:
93+
secretKeyRef:
94+
name: {{ template "common.names.fullname" . }}-quorum-tls-pass
95+
jsonpath: '{ .data.keystore-password }'
96+
97+
- name: QUORUM_TRUSTSTORE_PASSWORD
98+
valueFrom:
99+
secretKeyRef:
100+
name: {{ template "common.names.fullname" . }}-quorum-tls-pass
101+
jsonpath: '{ .data.truststore-password }'
102+
{{- end }}
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-2c4g5w"
2+
id: 675c826c-dd9c-4e1d-8300-3258736f026e
3+
description: "ZooKeeper standard-2c4g5w plan which limit resources 2 cores 4G memory 5 node."
4+
displayName: "standard-2c4g5w"
5+
bindable: true
6+
maximum_polling_duration: 1800
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## @param fullnameOverride String to fully override common.names.fullname template
2+
##
3+
fullnameOverride: "hb-zookeeper-standard-2c4g5w"
4+
5+
## @param replicaCount Number of ZooKeeper nodes
6+
##
7+
replicaCount: 5
8+
9+
## ZooKeeper resource requests and limits
10+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
11+
## @param resources.limits The resources limits for the ZooKeeper containers
12+
## @param resources.requests.memory The requested memory for the ZooKeeper containers
13+
## @param resources.requests.cpu The requested cpu for the ZooKeeper containers
14+
##
15+
resources:
16+
limits:
17+
memory: 4Gi
18+
cpu: 2000m
19+
requests:
20+
memory: 2Gi
21+
cpu: 200m
22+
## @section Persistence parameters
23+
24+
## Enable persistence using Persistent Volume Claims
25+
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
26+
##
27+
persistence:
28+
## @param persistence.enabled Enable ZooKeeper data persistence using PVC. If false, use emptyDir
29+
##
30+
enabled: true
31+
## @param persistence.existingClaim Name of an existing PVC to use (only when deploying a single replica)
32+
##
33+
existingClaim: ""
34+
## @param persistence.storageClass PVC Storage Class for ZooKeeper data volume
35+
## If defined, storageClassName: <storageClass>
36+
## If set to "-", storageClassName: "", which disables dynamic provisioning
37+
## If undefined (the default) or set to null, no storageClassName spec is
38+
## set, choosing the default provisioner. (gp2 on AWS, standard on
39+
## GKE, AWS & OpenStack)
40+
##
41+
storageClass: ""
42+
## @param persistence.accessModes PVC Access modes
43+
##
44+
accessModes:
45+
- ReadWriteOnce
46+
## @param persistence.size PVC Storage Request for ZooKeeper data volume
47+
##
48+
size: 240Gi

0 commit comments

Comments
 (0)