From 5928c0625b7604c191e3deac4a43885c82145aaa Mon Sep 17 00:00:00 2001 From: Mikhail Naletov <36846182+okgolove@users.noreply.github.com> Date: Mon, 29 Jul 2019 13:57:53 +0300 Subject: [PATCH] Removed PDB for primary MongoDB StatefulSet (#15923) Signed-off-by: Mikhail Naletov --- stable/mongodb/Chart.yaml | 2 +- stable/mongodb/README.md | 2 -- .../poddisruptionbudget-primary-rs.yaml | 27 ------------------- stable/mongodb/values-production.yaml | 2 -- 4 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 stable/mongodb/templates/poddisruptionbudget-primary-rs.yaml diff --git a/stable/mongodb/Chart.yaml b/stable/mongodb/Chart.yaml index 582679c6c3..b09d7552cd 100644 --- a/stable/mongodb/Chart.yaml +++ b/stable/mongodb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mongodb -version: 6.2.1 +version: 6.3.0 appVersion: 4.0.11 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/stable/mongodb/README.md b/stable/mongodb/README.md index 523625dde5..b97956c051 100644 --- a/stable/mongodb/README.md +++ b/stable/mongodb/README.md @@ -90,10 +90,8 @@ The following table lists the configurable parameters of the MongoDB chart and t | `replicaSet.replicas.secondary` | Number of secondary nodes in the replica set | `1` | | `replicaSet.replicas.arbiter` | Number of arbiter nodes in the replica set | `1` | | `replicaSet.pdb.enabled` | Switch to enable/disable Pod Disruption Budget | `true` | -| `replicaSet.pdb.minAvailable.primary` | PDB (min available) for the MongoDB Primary nodes | `1` | | `replicaSet.pdb.minAvailable.secondary` | PDB (min available) for the MongoDB Secondary nodes | `1` | | `replicaSet.pdb.minAvailable.arbiter` | PDB (min available) for the MongoDB Arbiter nodes | `1` | -| `replicaSet.pdb.maxUnavailable.primary` | PDB (max unavailable) for the MongoDB Primary nodes | `nil` | | `replicaSet.pdb.maxUnavailable.secondary` | PDB (max unavailable) for the MongoDB Secondary nodes | `nil` | | `replicaSet.pdb.maxUnavailable.arbiter` | PDB (max unavailable) for the MongoDB Arbiter nodes | `nil` | | `podAnnotations` | Annotations to be added to pods | `{}` | diff --git a/stable/mongodb/templates/poddisruptionbudget-primary-rs.yaml b/stable/mongodb/templates/poddisruptionbudget-primary-rs.yaml deleted file mode 100644 index c48568ecfb..0000000000 --- a/stable/mongodb/templates/poddisruptionbudget-primary-rs.yaml +++ /dev/null @@ -1,27 +0,0 @@ -{{- if and .Values.replicaSet.enabled .Values.replicaSet.pdb.enabled }} -apiVersion: policy/v1beta1 -kind: PodDisruptionBudget -metadata: - labels: - app: {{ template "mongodb.name" . }} - chart: {{ template "mongodb.chart" . }} - heritage: {{ .Release.Service }} - release: {{ .Release.Name }} - name: {{ template "mongodb.fullname" . }}-primary -spec: - {{- if .Values.replicaSet.pdb.minAvailable }} - {{- if .Values.replicaSet.pdb.minAvailable.primary }} - minAvailable: {{ .Values.replicaSet.pdb.minAvailable.primary }} - {{- end }} - {{- end }} - {{- if .Values.replicaSet.pdb.maxUnavailable }} - {{- if .Values.replicaSet.pdb.maxUnavailable.primary }} - maxUnavailable: {{ .Values.replicaSet.pdb.maxUnavailable.primary }} - {{- end }} - {{- end }} - selector: - matchLabels: - app: {{ template "mongodb.name" . }} - release: {{ .Release.Name }} - component: primary -{{- end }} \ No newline at end of file diff --git a/stable/mongodb/values-production.yaml b/stable/mongodb/values-production.yaml index 3e4f3f7aaf..b0981e3af6 100644 --- a/stable/mongodb/values-production.yaml +++ b/stable/mongodb/values-production.yaml @@ -166,11 +166,9 @@ replicaSet: pdb: enabled: true minAvailable: - primary: 1 secondary: 1 arbiter: 1 # maxUnavailable: - # primary: 1 # secondary: 1 # arbiter: 1