mongodb-replicaset: added resources definition for initContainers (#8285)

* Update mongodb-statefulset.yaml

Signed-off-by: Roberto Previtera <roberto.previtera@eni.com>

* Update values.yaml

Signed-off-by: Roberto Previtera <roberto.previtera@eni.com>

* added resources definition for initContainers

Signed-off-by: Roberto Previtera <roberto.previtera@eni.com>

* added resources definition for initContainers

Signed-off-by: Roberto Previtera <roberto.previtera@eni.com>

* version bump

Signed-off-by: Roberto Previtera <roberto.previtera@eni.com>
This commit is contained in:
Roberto
2018-11-04 13:16:14 -08:00
committed by k8s-ci-robot
parent 17294c1906
commit 4c36682e31
4 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: mongodb-replicaset
home: https://github.com/mongodb/mongo
version: 3.6.3
version: 3.6.4
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.
+1
View File
@@ -55,6 +55,7 @@ The following table lists the configurable parameters of the mongodb chart and t
| `tls.enabled` | Enable MongoDB TLS support including authentication | `false` |
| `tls.cacert` | The CA certificate used for the members | Our self signed CA certificate |
| `tls.cakey` | The CA key used for the members | Our key for the self signed CA certificate |
| `init.resources` | Pod resource requests and limits (for init containers) | `{}` |
| `metrics.enabled` | Enable Prometheus compatible metrics for pods and replicasets | `false` |
| `metrics.image.repository` | Image name for metrics exporter | `ssalaues/mongodb-exporter` |
| `metrics.image.tag` | Image tag for metrics exporter | `0.6.1` |
@@ -76,6 +76,8 @@ spec:
- name: keydir
mountPath: /keydir-readonly
{{- end }}
resources:
{{ toYaml .Values.init.resources | indent 12 }}
- name: install
image: "{{ .Values.installImage.repository }}:{{ .Values.installImage.tag }}"
args:
@@ -84,6 +86,8 @@ spec:
volumeMounts:
- name: workdir
mountPath: /work-dir
resources:
{{ toYaml .Values.init.resources | indent 12 }}
- name: bootstrap
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command:
@@ -113,6 +117,7 @@ spec:
secretKeyRef:
name: "{{ template "mongodb-replicaset.adminSecret" . }}"
key: password
{{- if .Values.metrics.enabled }}
- name: METRICS
value: "true"
@@ -137,6 +142,8 @@ spec:
mountPath: /data/configdb
- name: datadir
mountPath: /data/db
resources:
{{ toYaml .Values.init.resources | indent 12 }}
containers:
- name: {{ template "mongodb-replicaset.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+3
View File
@@ -57,6 +57,9 @@ securityContext:
fsGroup: 999
runAsNonRoot: true
init:
resources: {}
resources: {}
# limits:
# cpu: 500m