[mongodb] Add separate affinity for arbiter pod (#16711)

* [mongodb] Add separate affinity for arbiter pod

Signed-off-by: Chirica Gheorghe <chiricagheorghe@gmail.com>

* [mongodb] Bump version

Signed-off-by: Chirica Gheorghe <chiricagheorghe@gmail.com>
This commit is contained in:
Chirica Gheorghe
2019-09-02 07:03:42 -07:00
committed by Kubernetes Prow Robot
parent b8eb647c4b
commit 40a15c8dd4
5 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -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:
+1
View File
@@ -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` |
@@ -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:
+2
View File
@@ -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/
+2
View File
@@ -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/