diff --git a/stable/mariadb/Chart.yaml b/stable/mariadb/Chart.yaml index a27ef3efeb..5380335caf 100644 --- a/stable/mariadb/Chart.yaml +++ b/stable/mariadb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mariadb -version: 5.10.1 +version: 5.11.0 appVersion: 10.1.38 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 42de9e0576..9523700141 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 | `master.affinity` | Master affinity (in addition to master.antiAffinity when set) | `{}` | | `master.antiAffinity` | Master pod anti-affinity policy | `soft` | | `master.tolerations` | List of node taints to tolerate (master) | `[]` | +| `master.updateStrategy` | Master statefulset update strategy policy | `RollingUpdate` | | `master.persistence.enabled` | Enable persistence using PVC | `true` | | `master.persistence.existingClaim` | Provide an existing `PersistentVolumeClaim` | `nil` | | `master.persistence.mountPath` | Path to mount the volume at | `/bitnami/mariadb` | @@ -113,6 +114,7 @@ The following table lists the configurable parameters of the MariaDB chart and t | `slave.affinity` | Slave affinity (in addition to slave.antiAffinity when set) | `{}` | | `slave.antiAffinity` | Slave pod anti-affinity policy | `soft` | | `slave.tolerations` | List of node taints to tolerate for (slave) | `[]` | +| `slave.updateStrategy` | Slave statefulset update strategy policy | `RollingUpdate` | | `slave.persistence.enabled` | Enable persistence using a `PersistentVolumeClaim` | `true` | | `slave.persistence.annotations` | Persistent Volume Claim annotations | `{}` | | `slave.persistence.storageClass` | Persistent Volume Storage Class | `` | diff --git a/stable/mariadb/templates/master-statefulset.yaml b/stable/mariadb/templates/master-statefulset.yaml index 6b830d77c4..c9f8e11c1e 100644 --- a/stable/mariadb/templates/master-statefulset.yaml +++ b/stable/mariadb/templates/master-statefulset.yaml @@ -17,7 +17,10 @@ spec: serviceName: "{{ template "master.fullname" . }}" replicas: 1 updateStrategy: - type: RollingUpdate + type: {{ .Values.master.updateStrategy.type }} + {{- if (eq "Recreate" .Values.master.updateStrategy.type) }} + rollingUpdate: null + {{- end }} template: metadata: {{- if .Values.master.annotations }} diff --git a/stable/mariadb/templates/slave-statefulset.yaml b/stable/mariadb/templates/slave-statefulset.yaml index 0ff1167dca..8372b226fb 100644 --- a/stable/mariadb/templates/slave-statefulset.yaml +++ b/stable/mariadb/templates/slave-statefulset.yaml @@ -18,7 +18,10 @@ spec: serviceName: "{{ template "slave.fullname" . }}" replicas: {{ .Values.slave.replicas }} updateStrategy: - type: RollingUpdate + type: {{ .Values.slave.updateStrategy.type }} + {{- if (eq "Recreate" .Values.slave.updateStrategy.type) }} + rollingUpdate: null + {{- end }} template: metadata: {{- if .Values.slave.annotations }} diff --git a/stable/mariadb/values-production.yaml b/stable/mariadb/values-production.yaml index 7b8832a75f..d4d7ec3582 100644 --- a/stable/mariadb/values-production.yaml +++ b/stable/mariadb/values-production.yaml @@ -150,6 +150,11 @@ master: ## tolerations: [] + ## updateStrategy for MariaDB Master StatefulSet + ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies + updateStrategy: + type: RollingUpdate + ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ## @@ -267,6 +272,11 @@ slave: ## tolerations: [] + ## updateStrategy for MariaDB Slave StatefulSet + ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies + updateStrategy: + type: RollingUpdate + persistence: ## If true, use a Persistent Volume Claim, If false, use emptyDir ## diff --git a/stable/mariadb/values.yaml b/stable/mariadb/values.yaml index a9de42193c..9a3b5d07d7 100644 --- a/stable/mariadb/values.yaml +++ b/stable/mariadb/values.yaml @@ -150,6 +150,11 @@ master: ## tolerations: [] + ## updateStrategy for MariaDB Master StatefulSet + ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies + updateStrategy: + type: RollingUpdate + ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ## @@ -266,6 +271,11 @@ slave: ## tolerations: [] + ## updateStrategy for MariaDB Slave StatefulSet + ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies + updateStrategy: + type: RollingUpdate + persistence: ## If true, use a Persistent Volume Claim, If false, use emptyDir ##