many things
This commit is contained in:
parent
18a08d623b
commit
a7fad6c9c6
43 changed files with 1246 additions and 54 deletions
28
20-post-k8s/loki.tf
Normal file
28
20-post-k8s/loki.tf
Normal file
|
@ -0,0 +1,28 @@
|
|||
resource "b2_bucket" "cowley-tech-home-backup" {
|
||||
bucket_name = "cowley-tech-k3s-logs"
|
||||
bucket_type = "allPrivate"
|
||||
}
|
||||
|
||||
resource "b2_application_key" "loki" {
|
||||
key_name = "cowley-tech-k3s-logs"
|
||||
bucket_id = b2_bucket.cowley-tech-home-backup.id
|
||||
capabilities = [
|
||||
"deleteFiles",
|
||||
"listBuckets",
|
||||
"listFiles",
|
||||
"readBuckets",
|
||||
"readFiles",
|
||||
"writeFiles",
|
||||
]
|
||||
}
|
||||
|
||||
resource "kubernetes_secret" "b2-loki" {
|
||||
metadata {
|
||||
name = "b2-loki-credentials"
|
||||
namespace = "logging"
|
||||
}
|
||||
data = {
|
||||
B2_APPLICATION_KEY_ID = b2_application_key.loki.application_key_id
|
||||
B2_APPLICATION_KEY = b2_application_key.loki.application_key
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue