diff --git a/stable/mongodb/Chart.yaml b/stable/mongodb/Chart.yaml index 1ea6059c56..ed63fc3ebb 100644 --- a/stable/mongodb/Chart.yaml +++ b/stable/mongodb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mongodb -version: 7.2.5 +version: 7.2.6 appVersion: 4.0.12 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 22f09ef4cc..00414b1c21 100644 --- a/stable/mongodb/README.md +++ b/stable/mongodb/README.md @@ -102,6 +102,7 @@ The following table lists the configurable parameters of the MongoDB chart and t | `priorityClassName` | Pod priority class name | `` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `affinity` | Affinity for pod assignment | `{}` | +| `affinityArbiter` | Affinity for arbiter pod assignment | `{}` | | `tolerations` | Toleration labels for pod assignment | `{}` | | `updateStrategy` | Statefulsets update strategy policy | `RollingUpdate` | | `securityContext.enabled` | Enable security context | `true` | diff --git a/stable/mongodb/templates/statefulset-arbiter-rs.yaml b/stable/mongodb/templates/statefulset-arbiter-rs.yaml index 653cc2963c..24861e29d6 100644 --- a/stable/mongodb/templates/statefulset-arbiter-rs.yaml +++ b/stable/mongodb/templates/statefulset-arbiter-rs.yaml @@ -46,9 +46,9 @@ spec: securityContext: fsGroup: {{ .Values.securityContext.fsGroup }} {{- end }} - {{- if .Values.affinity }} + {{- if .Values.affinityArbiter }} affinity: -{{ toYaml .Values.affinity | indent 8 }} +{{ toYaml .Values.affinityArbiter | indent 8 }} {{- end -}} {{- if .Values.nodeSelector }} nodeSelector: diff --git a/stable/mongodb/values-production.yaml b/stable/mongodb/values-production.yaml index 9e9293b0e2..f6c4de4750 100644 --- a/stable/mongodb/values-production.yaml +++ b/stable/mongodb/values-production.yaml @@ -209,6 +209,8 @@ nodeSelector: {} ## Affinity ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity affinity: {} +# Define separate affinity for arbiter pod +affinityArbiter: {} ## Tolerations ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ diff --git a/stable/mongodb/values.yaml b/stable/mongodb/values.yaml index 0b5bbf7a07..652781e4f0 100644 --- a/stable/mongodb/values.yaml +++ b/stable/mongodb/values.yaml @@ -211,6 +211,8 @@ nodeSelector: {} ## Affinity ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity affinity: {} +# Define separate affinity for arbiter pod +affinityArbiter: {} ## Tolerations ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/