-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
206 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
secretGenerator: | ||
- name: ovn-backup-ospcv1-account | ||
namespace: kube-system | ||
envs: | ||
- ospcv1-account.env | ||
resources: | ||
- ovn-setup.yaml | ||
- ovn-backup.yaml | ||
patches: | ||
- path: ovn-backup-config-patch.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
USERNAME=ospcv1_username | ||
API_KEY=ospcv1_api_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This ConfigMap contains variables controlling the run of the OVN DB backups. | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ovn-backup-config | ||
namespace: kube-system | ||
data: | ||
RETENTION_DAYS: "30" | ||
BACKUP_DIR: "/backup" | ||
# You probably want to place this on the PersistentVolume so that it doesn't | ||
# get deleted with the pod by cron, or use /dev/null if you don't care. | ||
# You can use `kubectl logs` since log messages also go to STDOUT. | ||
LOG_FILE: "/backup/upload.log" | ||
|
||
# From here forward, variables for uploading to Rackspace OSPCv1 Cloud Files | ||
UPLOAD_OSPC_V1: "false" | ||
# Nothing after this line makes any difference unless you used | ||
# UPLOAD_OSPC_V1: "true" | ||
# above. | ||
CF_REGION: "dfw" # OSPCv1 Cloud Files region to use | ||
# You should probably include the name of the environment in CONTAINER | ||
CONTAINER: "test-ovn-backup" | ||
# Standard log levels DEBUG, INFO, WARNING, ERROR, CRITICAL | ||
# DEBUG also does `set -x` toward the beginning of the backup script. | ||
LOG_LEVEL: INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters