mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
Use different affinity for master and slave in mysql
This commit is contained in:
@@ -104,6 +104,7 @@ The following tables lists the configurable parameters of the MySQL chart and th
|
|||||||
| `master.readinessProbe.timeoutSeconds` | When the probe times out (master) | `1` |
|
| `master.readinessProbe.timeoutSeconds` | When the probe times out (master) | `1` |
|
||||||
| `master.readinessProbe.successThreshold` | Minimum consecutive successes for the probe (master) | `1` |
|
| `master.readinessProbe.successThreshold` | Minimum consecutive successes for the probe (master) | `1` |
|
||||||
| `master.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe (master) | `3` |
|
| `master.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe (master) | `3` |
|
||||||
|
| `master.affinity` | Map of master node/pod affinities | `{}` |
|
||||||
| `slave.replicas` | Desired number of slave replicas | `1` |
|
| `slave.replicas` | Desired number of slave replicas | `1` |
|
||||||
| `slave.antiAffinity` | Slave pod anti-affinity policy | `soft` |
|
| `slave.antiAffinity` | Slave pod anti-affinity policy | `soft` |
|
||||||
| `slave.updateStrategy.type` | Slave statefulset update strategy policy | `RollingUpdate` |
|
| `slave.updateStrategy.type` | Slave statefulset update strategy policy | `RollingUpdate` |
|
||||||
@@ -127,7 +128,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.timeoutSeconds` | When the probe times out (slave) | `1` |
|
||||||
| `slave.readinessProbe.successThreshold` | Minimum consecutive successes for the probe (slave) | `1` |
|
| `slave.readinessProbe.successThreshold` | Minimum consecutive successes for the probe (slave) | `1` |
|
||||||
| `slave.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe (slave) | `3` |
|
| `slave.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe (slave) | `3` |
|
||||||
| `affinity` | Map of node/pod affinities | `{}` |
|
| `slave.affinity` | Map of slave node/pod affinities | `{}` |
|
||||||
| `metrics.enabled` | Start a side-car prometheus exporter | `false` |
|
| `metrics.enabled` | Start a side-car prometheus exporter | `false` |
|
||||||
| `metrics.image` | Exporter image name | `bitnami/mysqld-exporter` |
|
| `metrics.image` | Exporter image name | `bitnami/mysqld-exporter` |
|
||||||
| `metrics.imageTag` | Exporter image tag | `{TAG_NAME}` |
|
| `metrics.imageTag` | Exporter image tag | `{TAG_NAME}` |
|
||||||
|
|||||||
@@ -210,6 +210,11 @@ master:
|
|||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|
||||||
|
## Affinity for pod assignment
|
||||||
|
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
||||||
|
##
|
||||||
|
affinity: {}
|
||||||
|
|
||||||
slave:
|
slave:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
antiAffinity: soft
|
antiAffinity: soft
|
||||||
@@ -288,10 +293,10 @@ slave:
|
|||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|
||||||
## Affinity for pod assignment
|
## Affinity for pod assignment
|
||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
||||||
##
|
##
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -210,6 +210,11 @@ master:
|
|||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|
||||||
|
## Affinity for pod assignment
|
||||||
|
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
||||||
|
##
|
||||||
|
affinity: {}
|
||||||
|
|
||||||
slave:
|
slave:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
antiAffinity: soft
|
antiAffinity: soft
|
||||||
@@ -288,10 +293,10 @@ slave:
|
|||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|
||||||
## Affinity for pod assignment
|
## Affinity for pod assignment
|
||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
||||||
##
|
##
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
Reference in New Issue
Block a user