File tree Expand file tree Collapse file tree 5 files changed +46
-1
lines changed Expand file tree Collapse file tree 5 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -7368,6 +7368,10 @@ spec:
7368
7368
metadata:
7369
7369
annotations:
7370
7370
checksum/configuration: f96f510015050d9b0165d12f144f5eca5641c065ccbe9c75e64f58e81a9b3d8c
7371
+ backup.velero.io/backup-volumes: backup
7372
+ podAnnotations.pre.hook.backup.velero.io/command: |
7373
+ ["/bin/bash", "-c", "mysqldump -u root -p${MYSQL_ROOT_PASSWORD} --databases ${MYSQL_DATABASE} gitpod-sessions -h 127.0.0.1 > /backup/mysqldump.sql"]
7374
+ pre.hook.backup.velero.io/timeout: 5m
7371
7375
labels:
7372
7376
app.kubernetes.io/name: mysql
7373
7377
helm.sh/chart: mysql-9.1.2
@@ -7479,13 +7483,17 @@ spec:
7479
7483
- name: config
7480
7484
mountPath: /opt/bitnami/mysql/conf/my.cnf
7481
7485
subPath: my.cnf
7486
+ - mountPath: /backup
7487
+ name: backup
7482
7488
volumes:
7483
7489
- name: config
7484
7490
configMap:
7485
7491
name: mysql
7486
7492
- name: custom-init-scripts
7487
7493
configMap:
7488
7494
name: db-init-scripts
7495
+ - emptyDir: {}
7496
+ name: backup
7489
7497
volumeClaimTemplates:
7490
7498
- metadata:
7491
7499
name: data
Original file line number Diff line number Diff line change @@ -7497,7 +7497,11 @@ spec:
7497
7497
metadata:
7498
7498
annotations:
7499
7499
checksum/configuration: f96f510015050d9b0165d12f144f5eca5641c065ccbe9c75e64f58e81a9b3d8c
7500
+ backup.velero.io/backup-volumes: backup
7500
7501
hello: world
7502
+ podAnnotations.pre.hook.backup.velero.io/command: |
7503
+ ["/bin/bash", "-c", "mysqldump -u root -p${MYSQL_ROOT_PASSWORD} --databases ${MYSQL_DATABASE} gitpod-sessions -h 127.0.0.1 > /backup/mysqldump.sql"]
7504
+ pre.hook.backup.velero.io/timeout: 5m
7501
7505
labels:
7502
7506
app.kubernetes.io/name: mysql
7503
7507
helm.sh/chart: mysql-9.1.2
@@ -7608,13 +7612,17 @@ spec:
7608
7612
- name: config
7609
7613
mountPath: /opt/bitnami/mysql/conf/my.cnf
7610
7614
subPath: my.cnf
7615
+ - mountPath: /backup
7616
+ name: backup
7611
7617
volumes:
7612
7618
- name: config
7613
7619
configMap:
7614
7620
name: mysql
7615
7621
- name: custom-init-scripts
7616
7622
configMap:
7617
7623
name: db-init-scripts
7624
+ - emptyDir: {}
7625
+ name: backup
7618
7626
volumeClaimTemplates:
7619
7627
- metadata:
7620
7628
name: data
Original file line number Diff line number Diff line change @@ -6831,6 +6831,10 @@ spec:
6831
6831
metadata:
6832
6832
annotations:
6833
6833
checksum/configuration: f96f510015050d9b0165d12f144f5eca5641c065ccbe9c75e64f58e81a9b3d8c
6834
+ backup.velero.io/backup-volumes: backup
6835
+ podAnnotations.pre.hook.backup.velero.io/command: |
6836
+ ["/bin/bash", "-c", "mysqldump -u root -p${MYSQL_ROOT_PASSWORD} --databases ${MYSQL_DATABASE} gitpod-sessions -h 127.0.0.1 > /backup/mysqldump.sql"]
6837
+ pre.hook.backup.velero.io/timeout: 5m
6834
6838
labels:
6835
6839
app.kubernetes.io/name: mysql
6836
6840
helm.sh/chart: mysql-9.1.2
@@ -6940,13 +6944,17 @@ spec:
6940
6944
- name: config
6941
6945
mountPath: /opt/bitnami/mysql/conf/my.cnf
6942
6946
subPath: my.cnf
6947
+ - mountPath: /backup
6948
+ name: backup
6943
6949
volumes:
6944
6950
- name: config
6945
6951
configMap:
6946
6952
name: mysql
6947
6953
- name: custom-init-scripts
6948
6954
configMap:
6949
6955
name: db-init-scripts
6956
+ - emptyDir: {}
6957
+ name: backup
6950
6958
volumeClaimTemplates:
6951
6959
- metadata:
6952
6960
name: data
Original file line number Diff line number Diff line change @@ -7111,6 +7111,10 @@ spec:
7111
7111
metadata:
7112
7112
annotations:
7113
7113
checksum/configuration: f96f510015050d9b0165d12f144f5eca5641c065ccbe9c75e64f58e81a9b3d8c
7114
+ backup.velero.io/backup-volumes: backup
7115
+ podAnnotations.pre.hook.backup.velero.io/command: |
7116
+ ["/bin/bash", "-c", "mysqldump -u root -p${MYSQL_ROOT_PASSWORD} --databases ${MYSQL_DATABASE} gitpod-sessions -h 127.0.0.1 > /backup/mysqldump.sql"]
7117
+ pre.hook.backup.velero.io/timeout: 5m
7114
7118
labels:
7115
7119
app.kubernetes.io/name: mysql
7116
7120
helm.sh/chart: mysql-9.1.2
@@ -7220,13 +7224,17 @@ spec:
7220
7224
- name: config
7221
7225
mountPath: /opt/bitnami/mysql/conf/my.cnf
7222
7226
subPath: my.cnf
7227
+ - mountPath: /backup
7228
+ name: backup
7223
7229
volumes:
7224
7230
- name: config
7225
7231
configMap:
7226
7232
name: mysql
7227
7233
- name: custom-init-scripts
7228
7234
configMap:
7229
7235
name: db-init-scripts
7236
+ - emptyDir: {}
7237
+ name: backup
7230
7238
volumeClaimTemplates:
7231
7239
- metadata:
7232
7240
name: data
Original file line number Diff line number Diff line change 8
8
# We switched to the specific version because "5.7" was broken at least once
9
9
tag : 5.7.34-debian-10-r55
10
10
primary :
11
+ # Backup settings
12
+ podAnnotations :
13
+ backup.velero.io/backup-volumes : backup
14
+ podAnnotations.pre.hook.backup.velero.io/command : |
15
+ ["/bin/bash", "-c", "mysqldump -u root -p${MYSQL_ROOT_PASSWORD} --databases ${MYSQL_DATABASE} gitpod-sessions -h 127.0.0.1 > /backup/mysqldump.sql"]
16
+ pre.hook.backup.velero.io/timeout : 5m
17
+ extraVolumes :
18
+ - name : backup
19
+ emptyDir : {}
20
+ extraVolumeMounts :
21
+ - name : backup
22
+ mountPath : /backup
23
+ # End of backup settings
11
24
extraEnvVars :
12
25
# We rely on this in our DB implementations: NULL (re-)sets configured columns to be initialized with CURRENT_TIMESTAMP.
13
26
# OFF is the default as documented [here](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp) (we also see this in GCP), but not for this chart.
19
32
serviceAccount :
20
33
create : false
21
34
volumePermissions :
22
- enabled : true
35
+ enabled : true
You can’t perform that action at this time.
0 commit comments