feat: add terraform deployment for K8s invidious
This commit is contained in:
parent
ff7c9d8b91
commit
904b067816
10 changed files with 572 additions and 0 deletions
16
deployments/invidious/configs.tf
Normal file
16
deployments/invidious/configs.tf
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue