[stable/wordpress] Add pod tolerations and affinity. (#6406)

* [stable/wordpress] Add pod tolerations and affinity.

* [stable/wordpress] Document tolerations and affinity in README

* [stable/wordpress] Bump chart version

* bump to 2.1.0

* [stable/wordpress] Remove extra blank lines
This commit is contained in:
Jeff French
2018-07-03 09:58:18 -07:00
committed by k8s-ci-robot
parent 0897e3ee5c
commit 0aff33c74d
5 changed files with 32 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: wordpress
version: 2.0.1
version: 2.1.0
appVersion: 4.9.6
description: Web publishing platform for building blogs and websites.
icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png
+2
View File
@@ -96,6 +96,8 @@ The following table lists the configurable parameters of the WordPress chart and
| `persistence.accessMode` | PVC Access Mode | `ReadWriteOnce` |
| `persistence.size` | PVC Storage Request | `10Gi` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `affinity` | Map of node/pod affinities | `{}` |
The above parameters map to the env variables defined in [bitnami/wordpress](http://github.com/bitnami/bitnami-docker-wordpress). For more information please refer to the [bitnami/wordpress](http://github.com/bitnami/bitnami-docker-wordpress) image documentation.
@@ -146,3 +146,12 @@ spec:
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end -}}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
+10
View File
@@ -244,3 +244,13 @@ resources:
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
## Tolerations for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}
+10
View File
@@ -242,3 +242,13 @@ resources:
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
## Tolerations for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}