mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/mongodb] Support affinity in template (#7455)
It currently exists in `values.yaml' but never used Signed-off-by: Yujun Zhang <yujunz@nvidia.com>
This commit is contained in:
committed by
k8s-ci-robot
parent
f73ca1a09f
commit
d14eb1362a
@@ -1,5 +1,5 @@
|
||||
name: mongodb
|
||||
version: 4.2.1
|
||||
version: 4.2.2
|
||||
appVersion: 4.0.2
|
||||
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
|
||||
keywords:
|
||||
|
||||
@@ -21,6 +21,10 @@ spec:
|
||||
fsGroup: {{ .Values.securityContext.fsGroup }}
|
||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||
{{- end }}
|
||||
{{- if .Values.affinity }}
|
||||
affinity:
|
||||
{{ toYaml .Values.affinity | indent 8 }}
|
||||
{{- end -}}
|
||||
{{- if .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
|
||||
Reference in New Issue
Block a user