[incubator/chartmuseum]: Add support for nodeSelector, tolerations, affinity (#3835)

Add support for specifying pod node selector, pod tolerations, and pod affinity via values.yaml
This commit is contained in:
Kiall Mac Innes
2018-02-23 10:03:44 -08:00
committed by k8s-ci-robot
parent fb1e42a078
commit d731236dbb
4 changed files with 28 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Helm Chart Repository with support for Amazon S3 and Google Cloud Storage
name: chartmuseum
version: 0.3.4
version: 0.3.5
appVersion: 0.3.1
home: https://github.com/chartmuseum/chartmuseum
icon: https://raw.githubusercontent.com/chartmuseum/chartmuseum/master/logo.png
+3
View File
@@ -37,6 +37,9 @@ their default values. See values.yaml for all available options.
| `resources.limits.memory` | Container maximum memory | `128Mi` |
| `resources.requests.cpu` | Container requested CPU | `80m` |
| `resources.requests.memory` | Container requested memory | `64Mi` |
| `nodeSelector` | Map of node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `affinity` | Map of node/pod affinities | `{}` |
Specify each parameter using the `--set key=value[,key=value]` argument to
`helm install`.
@@ -67,8 +67,23 @@ spec:
- mountPath: /storage
name: storage-volume
{{- end }}
{{- with .Values.resources }}
resources:
{{ toYaml .Values.resources | indent 10 }}
{{ toYaml . | indent 10 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
volumes:
- name: storage-volume
{{- if .Values.persistence.Enabled }}
@@ -76,4 +91,4 @@ spec:
claimName: {{ .Values.persistence.ExistingClaim | default (include "common.fullname" .) }}
{{- else }}
emptyDir: {}
{{- end -}}
{{- end -}}
+7
View File
@@ -71,6 +71,13 @@ resources:
requests:
cpu: 80m
memory: 64Mi
nodeSelector: {}
tolerations: []
affinity: {}
persistence:
Enabled: false
AccessMode: ReadWriteOnce