mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-21 11:06:10 +10:00
Merge pull request #805 from bitnami/mysqlFixChart
[bitnami/mysql] Fix chart not being upgradable
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: mysql
|
||||
version: 2.1.2
|
||||
version: 3.0.0
|
||||
appVersion: 5.7.23
|
||||
description: Chart to create a Highly available MySQL cluster
|
||||
keywords:
|
||||
|
||||
@@ -141,3 +141,15 @@ The allowed extensions are `.sh`, `.sql` and `.sql.gz`.
|
||||
The [Bitnami MySQL](https://github.com/bitnami/bitnami-docker-mysql) image stores the MySQL data and configurations at the `/bitnami/mysql` path of the container.
|
||||
|
||||
The chart mounts a [Persistent Volume](kubernetes.io/docs/user-guide/persistent-volumes/) volume at this location. The volume is created using dynamic volume provisioning by default. An existing PersistentVolumeClaim can be defined.
|
||||
|
||||
## Upgrading
|
||||
|
||||
### To 3.0.0
|
||||
|
||||
Backwards compatibility is not guaranteed unless you modify the labels used on the chart's deployments.
|
||||
Use the workaround below to upgrade from versions previous to 3.0.0. The following example assumes that the release name is mysql:
|
||||
|
||||
```console
|
||||
$ kubectl delete statefulset mysql-master --cascade=false
|
||||
$ kubectl delete statefulset mysql-slave --cascade=false
|
||||
```
|
||||
|
||||
@@ -9,6 +9,11 @@ metadata:
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "name" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
component: "master"
|
||||
serviceName: "{{ template "master.fullname" . }}"
|
||||
replicas: 1
|
||||
updateStrategy:
|
||||
|
||||
@@ -10,6 +10,11 @@ metadata:
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "name" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
component: "slave"
|
||||
serviceName: "{{ template "slave.fullname" . }}"
|
||||
replicas: {{ .Values.slave.replicas }}
|
||||
updateStrategy:
|
||||
|
||||
Reference in New Issue
Block a user