File tree 5 files changed +41
-1
lines changed
statefulset-customization
5 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -7740,6 +7740,9 @@ 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"]
7743
7746
labels:
7744
7747
app.kubernetes.io/name: mysql
7745
7748
helm.sh/chart: mysql-9.1.2
@@ -7849,13 +7852,17 @@ spec:
7849
7852
- name: config
7850
7853
mountPath: /opt/bitnami/mysql/conf/my.cnf
7851
7854
subPath: my.cnf
7855
+ - mountPath: /backup
7856
+ name: backup
7852
7857
volumes:
7853
7858
- name: config
7854
7859
configMap:
7855
7860
name: mysql
7856
7861
- name: custom-init-scripts
7857
7862
configMap:
7858
7863
name: db-init-scripts
7864
+ - emptyDir: {}
7865
+ name: backup
7859
7866
volumeClaimTemplates:
7860
7867
- metadata:
7861
7868
name: data
Original file line number Diff line number Diff line change @@ -6831,6 +6831,9 @@ 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"]
6834
6837
labels:
6835
6838
app.kubernetes.io/name: mysql
6836
6839
helm.sh/chart: mysql-9.1.2
@@ -6940,13 +6943,17 @@ spec:
6940
6943
- name: config
6941
6944
mountPath: /opt/bitnami/mysql/conf/my.cnf
6942
6945
subPath: my.cnf
6946
+ - mountPath: /backup
6947
+ name: backup
6943
6948
volumes:
6944
6949
- name: config
6945
6950
configMap:
6946
6951
name: mysql
6947
6952
- name: custom-init-scripts
6948
6953
configMap:
6949
6954
name: db-init-scripts
6955
+ - emptyDir: {}
6956
+ name: backup
6950
6957
volumeClaimTemplates:
6951
6958
- metadata:
6952
6959
name: data
Original file line number Diff line number Diff line change @@ -7111,6 +7111,9 @@ 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"]
7114
7117
labels:
7115
7118
app.kubernetes.io/name: mysql
7116
7119
helm.sh/chart: mysql-9.1.2
@@ -7220,13 +7223,17 @@ spec:
7220
7223
- name: config
7221
7224
mountPath: /opt/bitnami/mysql/conf/my.cnf
7222
7225
subPath: my.cnf
7226
+ - mountPath: /backup
7227
+ name: backup
7223
7228
volumes:
7224
7229
- name: config
7225
7230
configMap:
7226
7231
name: mysql
7227
7232
- name: custom-init-scripts
7228
7233
configMap:
7229
7234
name: db-init-scripts
7235
+ - emptyDir: {}
7236
+ name: backup
7230
7237
volumeClaimTemplates:
7231
7238
- metadata:
7232
7239
name: data
Original file line number Diff line number Diff line change @@ -7123,6 +7123,9 @@ 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"]
7126
7129
labels:
7127
7130
app.kubernetes.io/name: mysql
7128
7131
helm.sh/chart: mysql-9.1.2
@@ -7232,13 +7235,17 @@ spec:
7232
7235
- name: config
7233
7236
mountPath: /opt/bitnami/mysql/conf/my.cnf
7234
7237
subPath: my.cnf
7238
+ - mountPath: /backup
7239
+ name: backup
7235
7240
volumes:
7236
7241
- name: config
7237
7242
configMap:
7238
7243
name: mysql
7239
7244
- name: custom-init-scripts
7240
7245
configMap:
7241
7246
name: db-init-scripts
7247
+ - emptyDir: {}
7248
+ name: backup
7242
7249
volumeClaimTemplates:
7243
7250
- metadata:
7244
7251
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
+ extraVolumes :
17
+ - name : backup
18
+ emptyDir : {}
19
+ extraVolumeMounts :
20
+ - name : backup
21
+ mountPath : /backup
22
+ # End of backup settings
11
23
extraEnvVars :
12
24
# We rely on this in our DB implementations: NULL (re-)sets configured columns to be initialized with CURRENT_TIMESTAMP.
13
25
# 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
31
serviceAccount :
20
32
create : false
21
33
volumePermissions :
22
- enabled : true
34
+ enabled : true
You can’t perform that action at this time.
0 commit comments