diff --git a/external/Makefile b/external/Makefile index 873edec6..c1fa2905 100644 --- a/external/Makefile +++ b/external/Makefile @@ -21,3 +21,6 @@ plan: .terraform.lock.hcl apply: .terraform.lock.hcl namespaces terraform apply -auto-approve + +format: + terraform fmt -recursive . diff --git a/external/main.tf b/external/main.tf index 1fb5ab27..8cdad76d 100644 --- a/external/main.tf +++ b/external/main.tf @@ -17,3 +17,8 @@ module "ntfy" { source = "./modules/ntfy" auth = var.ntfy } + +module "backup" { + source = "./modules/backup" + backup_bucket = var.backup_bucket +} diff --git a/external/modules/backup/main.tf b/external/modules/backup/main.tf new file mode 100644 index 00000000..dd6a877b --- /dev/null +++ b/external/modules/backup/main.tf @@ -0,0 +1,16 @@ +resource "kubernetes_secret" "velero_credentials" { + metadata { + name = "velero-credentials" + namespace = "velero" + } + + data = { + cloud = <