mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-26 21:45:51 +10:00
Add affinity to mysql
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user