From 27f22ff16fe95292961bc4b18d311ea273410209 Mon Sep 17 00:00:00 2001 From: Victor Boissiere Date: Wed, 2 Jan 2019 18:42:05 +0100 Subject: [PATCH] [stable/mongodb-replicaset] Add priority class to pods (#10339) * Add priority class to mongodb statefulset Signed-off-by: Victor Boissiere * Increase minor version Signed-off-by: Victor Boissiere --- stable/mongodb-replicaset/Chart.yaml | 2 +- stable/mongodb-replicaset/README.md | 1 + stable/mongodb-replicaset/templates/mongodb-statefulset.yaml | 3 +++ stable/mongodb-replicaset/values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/mongodb-replicaset/Chart.yaml b/stable/mongodb-replicaset/Chart.yaml index c61af36ca8..20670fd967 100644 --- a/stable/mongodb-replicaset/Chart.yaml +++ b/stable/mongodb-replicaset/Chart.yaml @@ -1,6 +1,6 @@ name: mongodb-replicaset home: https://github.com/mongodb/mongo -version: 3.8.7 +version: 3.9.0 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. diff --git a/stable/mongodb-replicaset/README.md b/stable/mongodb-replicaset/README.md index d553d41564..45492ff5e9 100644 --- a/stable/mongodb-replicaset/README.md +++ b/stable/mongodb-replicaset/README.md @@ -86,6 +86,7 @@ The following table lists the configurable parameters of the mongodb chart and t | `nodeSelector` | Node labels for pod assignment | `{}` | | `affinity` | Node/pod affinities | `{}` | | `tolerations` | List of node taints to tolerate | `[]` | +| `priorityClassName` | Pod priority class name | `` | | `livenessProbe.failureThreshold` | Liveness probe failure threshold | `3` | | `livenessProbe.initialDelaySeconds` | Liveness probe initial delay seconds | `30` | | `livenessProbe.periodSeconds` | Liveness probe period seconds | `10` | diff --git a/stable/mongodb-replicaset/templates/mongodb-statefulset.yaml b/stable/mongodb-replicaset/templates/mongodb-statefulset.yaml index 0952334ab9..d05c3a1cbd 100644 --- a/stable/mongodb-replicaset/templates/mongodb-statefulset.yaml +++ b/stable/mongodb-replicaset/templates/mongodb-statefulset.yaml @@ -36,6 +36,9 @@ spec: {{ toYaml .Values.podAnnotations | indent 8 }} {{- end }} spec: + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} {{- if .Values.imagePullSecrets }} imagePullSecrets: {{- range .Values.imagePullSecrets }} diff --git a/stable/mongodb-replicaset/values.yaml b/stable/mongodb-replicaset/values.yaml index f186c1ad1f..975e74cbb6 100644 --- a/stable/mongodb-replicaset/values.yaml +++ b/stable/mongodb-replicaset/values.yaml @@ -92,6 +92,8 @@ tolerations: [] extraLabels: {} +# priorityClassName: "" + persistentVolume: enabled: true ## mongodb-replicaset data Persistent Volume Storage Class