Skip to content

Commit

Permalink
[stable/minio] Add support for priorityClasses (helm#6604)
Browse files Browse the repository at this point in the history
* [stable/minio] Add support for priorityClasses

- add support for priorityClasses

* Update Chart.yaml

Signed-off-by: Jakob Niggel <info@jakobniggel.de>
  • Loading branch information
rtluckie authored and Jnig committed Nov 13, 2018
1 parent a99eb01 commit 9eef502
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/minio/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Minio is a high performance distributed object storage server, designed for large-scale private cloud infrastructure.
name: minio
version: 1.4.0
version: 1.5.0
appVersion: RELEASE.2018-07-10T01-42-11Z
keywords:
- storage
Expand Down
1 change: 1 addition & 0 deletions stable/minio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ The following table lists the configurable parameters of the Minio chart and the
| `persistence.accessMode` | ReadWriteOnce or ReadOnly | `ReadWriteOnce` |
| `persistence.subPath` | Mount a sub directory of the persistent volume if set | `""` |
| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `100m` |
| `priorityClassName` | Pod priority settings | `""` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `affinity` | Affinity settings for pod assignment | `{}` |
| `tolerations` | Toleration labels for pod assignment | `[]` |
Expand Down
3 changes: 3 additions & 0 deletions stable/minio/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
app: {{ template "minio.name" . }}
release: {{ .Release.Name }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
3 changes: 3 additions & 0 deletions stable/minio/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
app: {{ template "minio.name" . }}
release: {{ .Release.Name }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
Expand Down
5 changes: 5 additions & 0 deletions stable/minio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ mcImage:
##
mode: standalone

## Pod priority settings
## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
##
priorityClassName: ""

## Set default accesskey, secretkey, Minio config file path, volume mount path and
## number of nodes (only used for Minio distributed mode)
## Distributed Minio ref: https://docs.minio.io/docs/distributed-minio-quickstart-guide
Expand Down

0 comments on commit 9eef502

Please sign in to comment.