mirror of
https://github.com/helm/charts.git
synced 2026-08-21 21:38:03 +00:00
[stable/mongodb-replicaset] Add support to customize updateStrategy (#20968)
* add support to customize updateStrategy Signed-off-by: Tuan Anh Nguyen <tuananh.nguyen-ext@commercetools.de> * minor version bump Signed-off-by: Tuan Anh Nguyen <tuananh.nguyen-ext@commercetools.de>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
name: mongodb-replicaset
|
||||
home: https://github.com/mongodb/mongo
|
||||
version: 3.13.1
|
||||
version: 3.14.0
|
||||
appVersion: 3.6
|
||||
description: NoSQL document-oriented database that stores JSON-like documents with
|
||||
dynamic schemas, simplifying the integration of data in content-driven applications.
|
||||
|
||||
@@ -38,6 +38,7 @@ The following table lists the configurable parameters of the mongodb chart and t
|
||||
| `replicaSetName` | The name of the replica set | `rs0` |
|
||||
| `skipInitialization` | If `true` skip replica set initialization during bootstrapping | `false`
|
||||
| `podDisruptionBudget` | Pod disruption budget | `{}` |
|
||||
| `updateStrategy` | Update strategy | `nil` |
|
||||
| `port` | MongoDB port | `27017` |
|
||||
| `imagePullSecrets` | Image pull secrets | `[]` |
|
||||
| `installImage.repository` | Image name for the install container | `unguiculus/mongodb-install` |
|
||||
@@ -406,7 +407,7 @@ metadata:
|
||||
spec:
|
||||
type: ExternalName
|
||||
externalName: mongodb01.mydomain.com
|
||||
```
|
||||
```
|
||||
|
||||
If you also put each StatefulSet member behind a loadbalancer the ReplicaSet members outside of the cluster will also be able to reach the pods inside the cluster.
|
||||
|
||||
|
||||
@@ -16,6 +16,10 @@ metadata:
|
||||
name: {{ template "mongodb-replicaset.fullname" . }}
|
||||
namespace: {{ template "mongodb-replicaset.namespace" . }}
|
||||
spec:
|
||||
{{- if .Values.updateStrategy }}
|
||||
updateStrategy:
|
||||
{{ toYaml .Values.updateStrategy | indent 4 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "mongodb-replicaset.name" . }}
|
||||
|
||||
@@ -18,6 +18,9 @@ podDisruptionBudget: {}
|
||||
# maxUnavailable: 1
|
||||
# minAvailable: 2
|
||||
|
||||
# updateStrategy:
|
||||
# type: RollingUpdate
|
||||
|
||||
auth:
|
||||
enabled: false
|
||||
existingKeySecret: ""
|
||||
|
||||
Reference in New Issue
Block a user