Skip to content

Commit e9205e9

Browse files
committed
chore(mongodb): add plans
1 parent b7e8456 commit e9205e9

25 files changed

Lines changed: 420 additions & 12 deletions

addons/mongodb/7.0/chart/mongodb/values.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,18 +1873,12 @@ metrics:
18731873
## @param metrics.resources.requests The requested resources for Prometheus exporter containers
18741874
##
18751875
resources:
1876-
## Example:
1877-
## limits:
1878-
## cpu: 100m
1879-
## memory: 128Mi
1880-
##
1881-
limits: {}
1882-
## Examples:
1883-
## requests:
1884-
## cpu: 100m
1885-
## memory: 128Mi
1886-
##
1887-
requests: {}
1876+
limits:
1877+
cpu: 500m
1878+
memory: 512Mi
1879+
requests:
1880+
cpu: 100m
1881+
memory: 128Mi
18881882
## @param metrics.containerPort Port of the Prometheus metrics container
18891883
##
18901884
containerPort: 9216
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{{- $fullName := include "mongodb.fullname" . }}
2+
{{- $replicaCount := .Values.replicaCount | int }}
3+
credential:
4+
{{- if (eq .Values.service.type "LoadBalancer") }}
5+
{{- range $i, $e := until $replicaCount }}
6+
- name: {{ printf "EXTRANET_HOST_%d" $i }}
7+
valueFrom:
8+
serviceRef:
9+
name: {{ printf "%s-%d" $fullName $i }}
10+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
11+
{{- end }}
12+
{{- end }}
13+
{{- range $i, $e := until $replicaCount }}
14+
- name: {{ printf "HOSTNAME_%d" $i }}
15+
valueFrom:
16+
serviceRef:
17+
name: {{ printf "%s-%d" $fullName $i }}
18+
jsonpath: '{ .spec.clusterIP }'
19+
{{- end }}
20+
- name: PASSWORD
21+
valueFrom:
22+
secretKeyRef:
23+
name: {{ template "common.names.fullname" . }}
24+
jsonpath: '{ .data.mongodb-root-password }'
25+
- name: USERNAME
26+
value: 'root'
27+
- name: PORT
28+
value: 27017
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-16c64g400"
2+
id: ae0a6495-8a57-4282-ba6c-7887078bc36a
3+
description: "mongodb standard-16c64g400 plan: Disk 400Gi ,vCPUs 16 , RAM 64G "
4+
displayName: "standard-16c64g400"
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-mongo-cluster-standard-16c64g400
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: 16000m
17+
memory: 64Gi
18+
requests:
19+
cpu: 16000m
20+
memory: 64Gi
21+
22+
persistence:
23+
size: 400Gi
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{{- $fullName := include "mongodb.fullname" . }}
2+
{{- $replicaCount := .Values.replicaCount | int }}
3+
credential:
4+
{{- if (eq .Values.service.type "LoadBalancer") }}
5+
{{- range $i, $e := until $replicaCount }}
6+
- name: {{ printf "EXTRANET_HOST_%d" $i }}
7+
valueFrom:
8+
serviceRef:
9+
name: {{ printf "%s-%d" $fullName $i }}
10+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
11+
{{- end }}
12+
{{- end }}
13+
{{- range $i, $e := until $replicaCount }}
14+
- name: {{ printf "HOSTNAME_%d" $i }}
15+
valueFrom:
16+
serviceRef:
17+
name: {{ printf "%s-%d" $fullName $i }}
18+
jsonpath: '{ .spec.clusterIP }'
19+
{{- end }}
20+
- name: PASSWORD
21+
valueFrom:
22+
secretKeyRef:
23+
name: {{ template "common.names.fullname" . }}
24+
jsonpath: '{ .data.mongodb-root-password }'
25+
- name: USERNAME
26+
value: 'root'
27+
- name: PORT
28+
value: 27017
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: 7a599bfe-42fe-45f0-a7e5-d706cceeb75a
3+
description: "mongodb 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-mongo-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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{{- $fullName := include "mongodb.fullname" . }}
2+
{{- $replicaCount := .Values.replicaCount | int }}
3+
credential:
4+
{{- if (eq .Values.service.type "LoadBalancer") }}
5+
{{- range $i, $e := until $replicaCount }}
6+
- name: {{ printf "EXTRANET_HOST_%d" $i }}
7+
valueFrom:
8+
serviceRef:
9+
name: {{ printf "%s-%d" $fullName $i }}
10+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
11+
{{- end }}
12+
{{- end }}
13+
{{- range $i, $e := until $replicaCount }}
14+
- name: {{ printf "HOSTNAME_%d" $i }}
15+
valueFrom:
16+
serviceRef:
17+
name: {{ printf "%s-%d" $fullName $i }}
18+
jsonpath: '{ .spec.clusterIP }'
19+
{{- end }}
20+
- name: PASSWORD
21+
valueFrom:
22+
secretKeyRef:
23+
name: {{ template "common.names.fullname" . }}
24+
jsonpath: '{ .data.mongodb-root-password }'
25+
- name: USERNAME
26+
value: 'root'
27+
- name: PORT
28+
value: 27017

0 commit comments

Comments
 (0)