-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backup): use s3 based backup in staging and local (#1082)
* feat(backup): use s3 based backup in staging and local * fix: chart repo is misspelled Co-authored-by: Deniz Erdogan <[email protected]> * Update k8s/helmfile/helmfile.yaml Co-authored-by: Deniz Erdogan <[email protected]> --------- Co-authored-by: Deniz Erdogan <[email protected]>
- Loading branch information
Showing
5 changed files
with
43 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
image: | ||
tag: v0.2.0 | ||
tag: v0.3.0 | ||
|
||
job: | ||
failedJobsHistoryLimit: 1 | ||
successfulJobsHistoryLimit: 1 | ||
cronSchedule: "* * 1 1 *" | ||
|
||
scratchDiskSpace: 4Gi | ||
|
||
restorePodRunning: false | ||
|
||
storage: | ||
scratchDiskSpace: 4Gi | ||
gcs: | ||
bucketName: nacho-cheese | ||
uploadToBucket: false | ||
bucketName: backups | ||
uploadToBucket: true | ||
accessKeySecretName: minio-credentials | ||
accessKeySecretKey: rootUser | ||
secretKeySecretName: minio-credentials | ||
secretKeySecretKey: rootPassword | ||
endpoint: http://minio.default.svc.cluster.local:9000 |
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,7 +1,8 @@ | ||
image: | ||
tag: v0.2.0 | ||
tag: v0.3.0 | ||
|
||
scratchDiskSpace: 8Gi | ||
|
||
storage: | ||
scratchDiskSpace: 8Gi | ||
gcs: | ||
bucketName: wikibase-dev-sql-backup | ||
bucketName: wikibase-dev-sql-backup | ||
uploadToBucket: true |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
resource "google_service_account" "dev-backup-upload" { | ||
account_id = "dev-backup-upload" | ||
} | ||
|
||
resource "google_storage_hmac_key" "dev-backup-upload-key" { | ||
service_account_email = google_service_account.dev-backup-upload.email | ||
} | ||
|
||
resource "google_project_iam_member" "dev-backup-upload" { | ||
role = "roles/storage.admin" | ||
member = "serviceAccount:${google_service_account.dev-backup-upload.email}" | ||
project = local.project_id | ||
} | ||
|
||
resource "kubernetes_secret" "gcs-hmac-key" { | ||
provider = kubernetes.wbaas-2 | ||
metadata { | ||
name = "gcs-hmac-key" | ||
} | ||
data = { | ||
"access-key" = google_storage_hmac_key.dev-backup-upload-key.access_id | ||
"secret-key" = google_storage_hmac_key.dev-backup-upload-key.secret | ||
} | ||
} |
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 |
---|---|---|
|
@@ -32,4 +32,4 @@ resource "google_service_account_key" "dev-api" { | |
keepers = { | ||
rotate = 1 | ||
} | ||
} | ||
} |