diff --git a/stable/mariadb/Chart.yaml b/stable/mariadb/Chart.yaml index 0f8f305070..7665a16915 100644 --- a/stable/mariadb/Chart.yaml +++ b/stable/mariadb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mariadb -version: 6.4.3 +version: 6.5.0 appVersion: 10.3.15 description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster. keywords: diff --git a/stable/mariadb/README.md b/stable/mariadb/README.md index 6a6141940f..213bed2633 100644 --- a/stable/mariadb/README.md +++ b/stable/mariadb/README.md @@ -82,6 +82,7 @@ The following table lists the configurable parameters of the MariaDB chart and t | `initdbScriptsConfigMap` | ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`) | `nil` | | `master.annotations[].key` | key for the the annotation list item | `nil` | | `master.annotations[].value` | value for the the annotation list item | `nil` | +| `master.extraFlags` | MariaDB master additional command line flags | `nil` | | `master.affinity` | Master affinity (in addition to master.antiAffinity when set) | `{}` | | `master.antiAffinity` | Master pod anti-affinity policy | `soft` | | `master.nodeSelector` | Master node labels for pod assignment | `{}` | @@ -116,6 +117,7 @@ The following table lists the configurable parameters of the MariaDB chart and t | `slave.replicas` | Desired number of slave replicas | `1` | | `slave.annotations[].key` | key for the the annotation list item | `nil` | | `slave.annotations[].value` | value for the the annotation list item | `nil` | +| `slave.extraFlags` | MariaDB slave additional command line flags | `nil` | | `slave.affinity` | Slave affinity (in addition to slave.antiAffinity when set) | `{}` | | `slave.antiAffinity` | Slave pod anti-affinity policy | `soft` | | `slave.nodeSelector` | Slave node labels for pod assignment | `{}` | diff --git a/stable/mariadb/templates/master-statefulset.yaml b/stable/mariadb/templates/master-statefulset.yaml index a709ff6302..0d8620972b 100644 --- a/stable/mariadb/templates/master-statefulset.yaml +++ b/stable/mariadb/templates/master-statefulset.yaml @@ -98,6 +98,10 @@ spec: - name: BITNAMI_DEBUG value: "true" {{- end }} + {{- if .Values.master.extraFlags }} + - name: MARIADB_EXTRA_FLAGS + value: "{{ .Values.master.extraFlags }}" + {{- end }} - name: MARIADB_ROOT_PASSWORD valueFrom: secretKeyRef: diff --git a/stable/mariadb/templates/slave-statefulset.yaml b/stable/mariadb/templates/slave-statefulset.yaml index 5685555262..3f8f0a043e 100644 --- a/stable/mariadb/templates/slave-statefulset.yaml +++ b/stable/mariadb/templates/slave-statefulset.yaml @@ -99,6 +99,10 @@ spec: - name: BITNAMI_DEBUG value: "true" {{- end }} + {{- if .Values.slave.extraFlags }} + - name: MARIADB_EXTRA_FLAGS + value: "{{ .Values.slave.extraFlags }}" + {{- end }} - name: MARIADB_REPLICATION_MODE value: "slave" - name: MARIADB_MASTER_HOST diff --git a/stable/mariadb/values-production.yaml b/stable/mariadb/values-production.yaml index 26da815c78..cf959a6733 100644 --- a/stable/mariadb/values-production.yaml +++ b/stable/mariadb/values-production.yaml @@ -140,6 +140,11 @@ master: # - key: key1 # value: value1 + ## MariaDB additional command line flags + ## Can be used to specify command line flags, for example: + ## + ## extraFlags: "--max-connect-errors=1000 --max_connections=155" + ## Affinity for pod assignment ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ## @@ -268,6 +273,11 @@ slave: # - key: key1 # value: value1 + ## MariaDB additional command line flags + ## Can be used to specify command line flags, for example: + ## + ## extraFlags: --max-connect-errors=1000 --max_connections=155" + ## Affinity for pod assignment ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ## diff --git a/stable/mariadb/values.yaml b/stable/mariadb/values.yaml index 31ea9f0cb7..4931951739 100644 --- a/stable/mariadb/values.yaml +++ b/stable/mariadb/values.yaml @@ -140,6 +140,11 @@ master: # - key: key1 # value: value1 + ## MariaDB additional command line flags + ## Can be used to specify command line flags, for example: + ## + ## extraFlags: "--max-connect-errors=1000 --max_connections=155" + ## Affinity for pod assignment ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ## @@ -268,6 +273,11 @@ slave: # - key: key1 # value: value1 + ## MariaDB additional command line flags + ## Can be used to specify command line flags, for example: + ## + ## extraFlags: "--max-connect-errors=1000 --max_connections=155" + ## Affinity for pod assignment ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ##