[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:
Tuan Anh Nguyen
2020-03-17 07:28:22 -07:00
committed by GitHub
parent 5efc2762df
commit aa307a3ada
4 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -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.
+2 -1
View File
@@ -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" . }}
+3
View File
@@ -18,6 +18,9 @@ podDisruptionBudget: {}
# maxUnavailable: 1
# minAvailable: 2
# updateStrategy:
# type: RollingUpdate
auth:
enabled: false
existingKeySecret: ""