add tier to all deployments [ci skip]

This commit is contained in:
Viktor Barzin 2026-01-10 16:28:12 +00:00
parent 20cd480988
commit 8abb8eddc0
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
95 changed files with 794 additions and 118 deletions

View file

@ -1,5 +1,6 @@
variable "tls_secret_name" {}
variable "db_password" {}
variable "tier" { type = string }
module "tls_secret" {
source = "../setup_tls_secret"
@ -12,6 +13,7 @@ resource "kubernetes_namespace" "nextcloud" {
name = "nextcloud"
labels = {
"istio-injection" : "disabled"
tier = var.tier
}
}
}
@ -49,7 +51,8 @@ resource "kubernetes_deployment" "whiteboard" {
name = "whiteboard"
namespace = kubernetes_namespace.nextcloud.metadata[0].name
labels = {
app = "whiteboard"
app = "whiteboard"
tier = var.tier
}
annotations = {
"reloader.stakater.com/search" = "true"