diff --git a/stable/mysql/Chart.yaml b/stable/mysql/Chart.yaml index 99732ef170..89e1118154 100755 --- a/stable/mysql/Chart.yaml +++ b/stable/mysql/Chart.yaml @@ -1,5 +1,5 @@ name: mysql -version: 0.8.2 +version: 0.8.3 appVersion: 5.7.14 description: Fast, reliable, scalable, and easy to use open-source relational database system. diff --git a/stable/mysql/README.md b/stable/mysql/README.md index bd16527cee..18f224ad67 100755 --- a/stable/mysql/README.md +++ b/stable/mysql/README.md @@ -86,6 +86,7 @@ The following table lists the configurable parameters of the MySQL chart and the | `ssl.certificates[0].key` | Server key (private key) | `nil` | | `imagePullSecrets` | Name of Secret resource containing private registry credentials | `nil` | | `initializationFiles` | List of SQL files which are run after the container started | `nil` | +| `timezone` | Container and mysqld timezone (TZ env) | `nil` (UTC depending on image) | Some of the parameters above map to the env variables defined in the [MySQL DockerHub image](https://hub.docker.com/_/mysql/). diff --git a/stable/mysql/templates/deployment.yaml b/stable/mysql/templates/deployment.yaml index befffd282a..75348c905c 100644 --- a/stable/mysql/templates/deployment.yaml +++ b/stable/mysql/templates/deployment.yaml @@ -58,6 +58,10 @@ spec: value: {{ default "" .Values.mysqlUser | quote }} - name: MYSQL_DATABASE value: {{ default "" .Values.mysqlDatabase | quote }} + {{- if .Values.timezone }} + - name: TZ + value: {{ .Values.timezone }} + {{- end }} ports: - name: mysql containerPort: 3306 diff --git a/stable/mysql/values.yaml b/stable/mysql/values.yaml index fbe33ac9fe..7b3a2c4d92 100644 --- a/stable/mysql/values.yaml +++ b/stable/mysql/values.yaml @@ -127,3 +127,10 @@ ssl: # -----BEGIN RSA PRIVATE KEY----- # ... # -----END RSA PRIVATE KEY----- + +## Populates the 'TZ' system timezone environment variable +## ref: https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html +## +## Default: nil (mysql will use image's default timezone, normally UTC) +## Example: 'Australia/Sydney' +# timezone: