Feature/12619 stable percona add affinity (#12640)

* refs: added affinity to percona chart

Signed-off-by: Daniele Piaggesi <daniele.piaggesi@bonsaimeme.com>

* refs: added variable docs in README.md

Signed-off-by: Daniele Piaggesi <daniele.piaggesi@bonsaimeme.com>
This commit is contained in:
Daniele Piaggesi
2019-04-15 05:22:25 -07:00
committed by Kubernetes Prow Robot
parent f027055688
commit 63490ca090
4 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: percona
version: 0.3.4
version: 0.3.5
appVersion: 5.7.17
description: free, fully compatible, enhanced, open source drop-in replacement for
MySQL
+1
View File
@@ -62,6 +62,7 @@ The following table lists the configurable parameters of the Percona chart and t
| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `100m` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | Node labels for pod assignment | `[]` |
| `affinity` | Node labels for pod assignment | `{}` |
Some of the parameters above map to the env variables defined in the [Percona Server DockerHub image](https://hub.docker.com/_/percona/).
+4
View File
@@ -82,6 +82,10 @@ spec:
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end -}}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
+5 -1
View File
@@ -1,6 +1,5 @@
## percona image
## ref: https://hub.docker.com/_/percona/
##
image: "percona"
## percona image version
@@ -64,3 +63,8 @@ nodeSelector: {}
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
## Affinity labels for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}