feat(external): inject Backblaze secrets to k8up namespace

This commit is contained in:
Khue Doan 2021-12-25 20:18:45 +07:00
parent da0b8f0450
commit 675891c558
2 changed files with 15 additions and 2 deletions

View File

@ -2,3 +2,15 @@ resource "b2_bucket" "backup" {
bucket_name = "khuedoan-homelab-backup"
bucket_type = "allPrivate"
}
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
}
}

View File

@ -7,7 +7,8 @@
name: "{{ item }}"
state: present
loop:
- tekton-pipelines
- cert-manager
- external-dns
- cloudflared
- external-dns
- k8up-operator
- tekton-pipelines