[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:
Jonathan Rubiero
2024-02-16 17:48:41 +01:00
committed by GitHub
parent b53317afe8
commit c6c54b8d37
4 changed files with 6 additions and 5 deletions

View File

@@ -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

View File

@@ -234,7 +234,7 @@ There are no services load balancing requests between MongoDB(&reg;) nodes; inst
| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
| `annotations` | Additional labels to be added to the MongoDB(&reg;) statefulset. Evaluated as a template | `{}` |
| `labels` | Annotations to be added to the MongoDB(&reg;) statefulset. Evaluated as a template | `{}` |
| `replicaCount` | Number of MongoDB(&reg;) nodes (only when `architecture=replicaset`) | `2` |
| `replicaCount` | Number of MongoDB(&reg;) nodes | `2` |
| `updateStrategy.type` | Strategy to use to replace existing MongoDB(&reg;) pods. When architecture=standalone and useStatefulSet=false, | `RollingUpdate` |
| `podManagementPolicy` | Pod management policy for MongoDB(&reg;) | `OrderedReady` |
| `podAffinityPreset` | MongoDB(&reg;) Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |

View File

@@ -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 }}

View File

@@ -448,8 +448,9 @@ annotations: {}
## @param labels Annotations to be added to the MongoDB(&reg;) statefulset. Evaluated as a template
##
labels: {}
## @param replicaCount Number of MongoDB(&reg;) nodes (only when `architecture=replicaset`)
## Ignored when mongodb.architecture=standalone
## @param replicaCount Number of MongoDB(&reg;) 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(&reg;) pods. When architecture=standalone and useStatefulSet=false,