mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:04:32 +07:00
23 lines
530 B
HCL
23 lines
530 B
HCL
resource "b2_bucket" "backup" {
|
|
bucket_name = "khuedoan-homelab-backup"
|
|
bucket_type = "allPrivate"
|
|
}
|
|
|
|
resource "random_password" "backup_repo_password" {
|
|
length = 64
|
|
special = false
|
|
}
|
|
|
|
resource "kubernetes_secret" "backblaze_credentials" {
|
|
metadata {
|
|
name = "backblaze-credentials"
|
|
namespace = "k8up-operator"
|
|
}
|
|
|
|
data = {
|
|
"application-key-id" = var.b2_application_key_id
|
|
"application-key" = var.b2_application_key
|
|
"repo-password" = random_password.backup_repo_password.result
|
|
}
|
|
}
|