Enhance database backup for etcdctl and postgresql

Updated environment variables for remote DB backups

Change-Id: I8a039d5e31399442662457a951facc6546a87577
This commit is contained in:
Sophie Huang 2022-01-26 15:52:58 +00:00
parent ab8fcb5fff
commit 0001792d0d
2 changed files with 30 additions and 0 deletions

View File

@ -102,6 +102,21 @@ spec:
name: ${ETCD_CONF_SECRET}
- name: OS_IDENTITY_API_VERSION
value: "3"
- name: NUMBER_OF_RETRIES_SEND_BACKUP_TO_REMOTE
valueFrom:
secretKeyRef:
key: REMOTE_BACKUP_RETRIES
name: ${ETCD_CONF_SECRET}
- name: MIN_DELAY_SEND_BACKUP_TO_REMOTE
valueFrom:
secretKeyRef:
key: REMOTE_BACKUP_SEND_DELAY_MIN
name: ${ETCD_CONF_SECRET}
- name: MAX_DELAY_SEND_BACKUP_TO_REMOTE
valueFrom:
secretKeyRef:
key: REMOTE_BACKUP_SEND_DELAY_MAX
name: ${ETCD_CONF_SECRET}
EOF
if $ETCD_REMOTE_BACKUP_ENABLED; then

View File

@ -115,6 +115,21 @@ spec:
name: ${POSTGRESQL_CONF_SECRET}
- name: OS_IDENTITY_API_VERSION
value: "3"
- name: NUMBER_OF_RETRIES_SEND_BACKUP_TO_REMOTE
valueFrom:
secretKeyRef:
key: REMOTE_BACKUP_RETRIES
name: ${POSTGRESQL_CONF_SECRET}
- name: MIN_DELAY_SEND_BACKUP_TO_REMOTE
valueFrom:
secretKeyRef:
key: REMOTE_BACKUP_SEND_DELAY_MIN
name: ${POSTGRESQL_CONF_SECRET}
- name: MAX_DELAY_SEND_BACKUP_TO_REMOTE
valueFrom:
secretKeyRef:
key: REMOTE_BACKUP_SEND_DELAY_MAX
name: ${POSTGRESQL_CONF_SECRET}
EOF
if $POSTGRESQL_REMOTE_BACKUP_ENABLED; then