-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add final components for backup-restore deployment
- Loading branch information
1 parent
1749056
commit aef37c3
Showing
4 changed files
with
103 additions
and
65 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
34 changes: 34 additions & 0 deletions
34
src/_nebari/stages/kubernetes_services/template/backup_restore.tf
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,34 @@ | ||
variable "backup-restore-enabled" { | ||
description = "Enable backup-restore service" | ||
type = bool | ||
default = false | ||
} | ||
|
||
variable "backup-restore-storage" { | ||
description = "Storage backend for backup-restore" | ||
type = map(string) | ||
default = {} | ||
} | ||
|
||
variable "backup-restore-image" { | ||
description = "The image to use for the backup-restore service" | ||
type = string | ||
} | ||
|
||
variable "backup-restore-image-tag" { | ||
description = "The tag of the image to use for the backup-restore service" | ||
type = string | ||
} | ||
|
||
module "nebari-backup-restore" { | ||
count = var.backup-restore-enabled ? 1 : 0 | ||
source = "./modules/kubernetes/services/backup-restore" | ||
|
||
external-url = var.endpoint | ||
realm_id = "nebari" | ||
image = var.backup-restore-image | ||
storage = var.backup-restore-storage | ||
image_tag = var.backup-restore-image-tag | ||
namespace = var.environment | ||
clients = ["nebari-cli"] | ||
} |
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