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 @@
# DB as a service. Installs MySQL operator
variable "tls_secret_name" {}
variable "tier" { type = string }
variable "dbaas_root_password" {}
variable "cluster_master_service" {
default = "mysql"
@ -99,6 +100,9 @@ resource "kubernetes_deployment" "mysql" {
annotations = {
"reloader.stakater.com/search" = "true"
}
labels = {
tier = var.tier
}
}
spec {
replicas = 1
@ -358,6 +362,7 @@ resource "kubernetes_deployment" "phpmyadmin" {
namespace = kubernetes_namespace.dbaas.metadata[0].name
labels = {
"app" = "phpmyadmin"
tier = var.tier
}
annotations = {
@ -684,6 +689,9 @@ resource "kubernetes_deployment" "postgres" {
annotations = {
"reloader.stakater.com/search" = "true"
}
labels = {
tier = var.tier
}
}
spec {
selector {
@ -777,6 +785,9 @@ resource "kubernetes_deployment" "pgadmin" {
annotations = {
"reloader.stakater.com/search" = "true"
}
labels = {
tier = var.tier
}
}
spec {
selector {