Skip to content

Commit

Permalink
[stable/mongodb] updates to support alternate k8s scheduler (helm#14359)
Browse files Browse the repository at this point in the history
* updates to support alternate k8s scheduler

Signed-off-by: Sathya Balakrishnan <[email protected]>

* update values-production.yaml

Signed-off-by: Sathya Balakrishnan <[email protected]>
  • Loading branch information
satchpx authored and k8s-ci-robot committed Jun 3, 2019
1 parent 0e587e0 commit 6b19d85
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/mongodb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mongodb
version: 5.17.5
version: 5.18.0
appVersion: 4.0.10
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/mongodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ The following table lists the configurable parameters of the MongoDB chart and t
| `securityContext.enabled` | Enable security context | `true` |
| `securityContext.fsGroup` | Group ID for the container | `1001` |
| `securityContext.runAsUser` | User ID for the container | `1001` |
| `schedulerName` | Name of the k8s scheduler (other than default) | `nil` |
| `persistence.enabled` | Use a PVC to persist data | `true` |
| `persistence.mountPath` | Path to mount the volume at | `/bitnami/mongodb` |
| `persistence.subPath` | Subdirectory of the volume to mount at | `""` |
Expand Down
3 changes: 3 additions & 0 deletions stable/mongodb/templates/deployment-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions stable/mongodb/templates/statefulset-arbiter-rs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ spec:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions stable/mongodb/templates/statefulset-primary-rs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions stable/mongodb/templates/statefulset-secondary-rs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions stable/mongodb/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ podAnnotations: {}
# Additional pod labels to apply
podLabels: {}

## Use an alternate scheduler, e.g. "stork".
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
# schedulerName:

## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
Expand Down
6 changes: 5 additions & 1 deletion stable/mongodb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# imageRegistry: myRegistryName
# imagePullSecrets:
# - myRegistryKeySecretName

image:
## Bitnami MongoDB registry
##
Expand Down Expand Up @@ -144,6 +143,11 @@ podAnnotations: {}
# Additional pod labels to apply
podLabels: {}

## Use an alternate scheduler, e.g. "stork".
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
# schedulerName:

## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
Expand Down

0 comments on commit 6b19d85

Please sign in to comment.