mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 23:47:48 +08:00
[bitnami/mongodb] Added the possibilty to define number of replicas in standalone mode (#22366)
* [bitnami/mongodb] Updated values.replicaCount to be 1
Signed-off-by: Jonathan Rubiero <30461894+rubij@users.noreply.github.com>
* [bitnami/mongodb] Parametrized replicas setting for standalone mode
Signed-off-by: Jonathan Rubiero <30461894+rubij@users.noreply.github.com>
* [bitnami/mongodb] Bumped Chart version
Signed-off-by: Jonathan Rubiero <30461894+rubij@users.noreply.github.com>
* Update README.md with readme-generator-for-helm
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
* Revert "[bitnami/mongodb] Updated values.replicaCount to be 1"
This reverts commit 1c054c2b38.
* [bitnami/mongodb] updated values and dep-sts to limit replicas in standalone mode
* Update README.md with readme-generator-for-helm
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
---------
Signed-off-by: Jonathan Rubiero <30461894+rubij@users.noreply.github.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Fran de Paz Galán <fran.de-paz@broadcom.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Fran de Paz Galán <fran.de-paz@broadcom.com>
This commit is contained in:
@@ -39,4 +39,4 @@ maintainers:
|
||||
name: mongodb
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/mongodb
|
||||
version: 14.9.0
|
||||
version: 14.10.0
|
||||
|
||||
@@ -234,7 +234,7 @@ There are no services load balancing requests between MongoDB(®) nodes; inst
|
||||
| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
|
||||
| `annotations` | Additional labels to be added to the MongoDB(®) statefulset. Evaluated as a template | `{}` |
|
||||
| `labels` | Annotations to be added to the MongoDB(®) statefulset. Evaluated as a template | `{}` |
|
||||
| `replicaCount` | Number of MongoDB(®) nodes (only when `architecture=replicaset`) | `2` |
|
||||
| `replicaCount` | Number of MongoDB(®) nodes | `2` |
|
||||
| `updateStrategy.type` | Strategy to use to replace existing MongoDB(®) pods. When architecture=standalone and useStatefulSet=false, | `RollingUpdate` |
|
||||
| `podManagementPolicy` | Pod management policy for MongoDB(®) | `OrderedReady` |
|
||||
| `podAffinityPreset` | MongoDB(®) Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
|
||||
|
||||
@@ -17,7 +17,7 @@ metadata:
|
||||
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: {{ gt (.Values.replicaCount | int) 1 | ternary 1 .Values.replicaCount }}
|
||||
{{- if .Values.useStatefulSet }}
|
||||
serviceName: {{ include "mongodb.service.nameOverride" . }}
|
||||
{{- end }}
|
||||
|
||||
@@ -448,8 +448,9 @@ annotations: {}
|
||||
## @param labels Annotations to be added to the MongoDB(®) statefulset. Evaluated as a template
|
||||
##
|
||||
labels: {}
|
||||
## @param replicaCount Number of MongoDB(®) nodes (only when `architecture=replicaset`)
|
||||
## Ignored when mongodb.architecture=standalone
|
||||
## @param replicaCount Number of MongoDB(®) nodes
|
||||
## When `mongodb.architecture=replicaset`, the number of replicas is taken in account
|
||||
## When `mongodb.architecture=standalone`, the number of replicas can only be 0 or 1 (value higher then 1 will not be taken in account)
|
||||
##
|
||||
replicaCount: 2
|
||||
## @param updateStrategy.type Strategy to use to replace existing MongoDB(®) pods. When architecture=standalone and useStatefulSet=false,
|
||||
|
||||
Reference in New Issue
Block a user