File tree 5 files changed +46
-1
lines changed
statefulset-customization
5 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -7740,6 +7740,10 @@ spec:
7740
7740
metadata:
7741
7741
annotations:
7742
7742
checksum/configuration: f96f510015050d9b0165d12f144f5eca5641c065ccbe9c75e64f58e81a9b3d8c
7743
+ backup.velero.io/backup-volumes: backup
7744
+ pre.hook.backup.velero.io/command: |
7745
+ ["/bin/bash", "-c", "mysqldump -u root -p$MYSQL_ROOT_PASSWORD --databases $MYSQL_DATABASE gitpod-sessions -h 127.0.0.1 > /backup/mysqldump.sql"]
7746
+ pre.hook.backup.velero.io/timeout: 5m
7743
7747
labels:
7744
7748
app.kubernetes.io/name: mysql
7745
7749
helm.sh/chart: mysql-9.1.2
@@ -7849,13 +7853,17 @@ spec:
7849
7853
- name: config
7850
7854
mountPath: /opt/bitnami/mysql/conf/my.cnf
7851
7855
subPath: my.cnf
7856
+ - mountPath: /backup
7857
+ name: backup
7852
7858
volumes:
7853
7859
- name: config
7854
7860
configMap:
7855
7861
name: mysql
7856
7862
- name: custom-init-scripts
7857
7863
configMap:
7858
7864
name: db-init-scripts
7865
+ - emptyDir: {}
7866
+ name: backup
7859
7867
volumeClaimTemplates:
7860
7868
- metadata:
7861
7869
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
+ 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
+ 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 @@ -7123,6 +7123,10 @@ spec:
7123
7123
metadata:
7124
7124
annotations:
7125
7125
checksum/configuration: f96f510015050d9b0165d12f144f5eca5641c065ccbe9c75e64f58e81a9b3d8c
7126
+ backup.velero.io/backup-volumes: backup
7127
+ pre.hook.backup.velero.io/command: |
7128
+ ["/bin/bash", "-c", "mysqldump -u root -p$MYSQL_ROOT_PASSWORD --databases $MYSQL_DATABASE gitpod-sessions -h 127.0.0.1 > /backup/mysqldump.sql"]
7129
+ pre.hook.backup.velero.io/timeout: 5m
7126
7130
labels:
7127
7131
app.kubernetes.io/name: mysql
7128
7132
helm.sh/chart: mysql-9.1.2
@@ -7232,13 +7236,17 @@ spec:
7232
7236
- name: config
7233
7237
mountPath: /opt/bitnami/mysql/conf/my.cnf
7234
7238
subPath: my.cnf
7239
+ - mountPath: /backup
7240
+ name: backup
7235
7241
volumes:
7236
7242
- name: config
7237
7243
configMap:
7238
7244
name: mysql
7239
7245
- name: custom-init-scripts
7240
7246
configMap:
7241
7247
name: db-init-scripts
7248
+ - emptyDir: {}
7249
+ name: backup
7242
7250
volumeClaimTemplates:
7243
7251
- metadata:
7244
7252
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
+ 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