feat: add terraform deployment for K8s invidious

This commit is contained in:
NaeiKinDus 2024-10-17 00:00:00 +00:00
parent ff7c9d8b91
commit 904b067816
Signed by: WoodSmellParticle
GPG key ID: 8E52ADFF7CA8AE56
10 changed files with 572 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# SPDX-License-Identifier: GPL-2.0-only
resource "kubernetes_secret_v1" "app_secrets" {
metadata {
name = "${var.app_name}-secrets"
annotations = var.secret_annotations
labels = merge({
"app.kubernetes.io/component" = "server"
"app.kubernetes.io/name" = var.app_name
"app.kubernetes.io/version" = var.app_version
"app.kubernetes.io/part-of" = var.app_name
"app.kubernetes.io/managed-by" = "opentofu"
"app.kubernetes.io/instance" = var.app_name
}, var.secret_additional_labels)
}
data = var.app_configuration
}