Add affinity to mysql

This commit is contained in:
Carlos Rodriguez Hernandez
2019-09-04 13:36:49 +00:00
parent ee75f6ca06
commit bdf9474ea5
6 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: mysql
version: 6.3.4
version: 6.3.5
appVersion: 8.0.17
description: Chart to create a Highly available MySQL cluster
keywords:
+1
View File
@@ -127,6 +127,7 @@ The following tables lists the configurable parameters of the MySQL chart and th
| `slave.readinessProbe.timeoutSeconds` | When the probe times out (slave) | `1` |
| `slave.readinessProbe.successThreshold` | Minimum consecutive successes for the probe (slave) | `1` |
| `slave.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe (slave) | `3` |
| `affinity` | Map of node/pod affinities | `{}` |
| `metrics.enabled` | Start a side-car prometheus exporter | `false` |
| `metrics.image` | Exporter image name | `bitnami/mysqld-exporter` |
| `metrics.imageTag` | Exporter image tag | `{TAG_NAME}` |
@@ -219,3 +219,7 @@ spec:
- name: "data"
emptyDir: {}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
@@ -196,3 +196,7 @@ spec:
emptyDir: {}
{{- end }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
+5
View File
@@ -288,6 +288,11 @@ slave:
successThreshold: 1
failureThreshold: 3
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}
metrics:
enabled: true
image:
+5
View File
@@ -288,6 +288,11 @@ slave:
successThreshold: 1
failureThreshold: 3
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}
metrics:
enabled: false
image: