setup env mapper for DB

This commit is contained in:
2026-06-29 16:12:49 +01:00
parent 7e8e229a63
commit 6b08931005
2 changed files with 36 additions and 38 deletions
+9 -37
View File
@@ -2713,11 +2713,15 @@ kubernetes = {
service_port = [8080]
domain_name = "owncloud"
database = {
"engine" = "mysql"
"image" = "lscr.io/linuxserver/mariadb"
"port" = 3306
"mountPath" = "/config"
name = "owncloud"
"engine" = "mysql"
"image" = "lscr.io/linuxserver/mariadb"
"port" = 3306
"mountPath" = "/config"
name = "owncloud"
map_username = "OWNCLOUD_DB_USERNAME"
map_name = "OWNCLOUD_DB_NAME"
map_password = "OWNCLOUD_DB_PASSWORD"
map_host = "OWNCLOUD_DB_HOST"
}
redis = {
image = "redis" }
@@ -2731,38 +2735,6 @@ kubernetes = {
OWNCLOUD_DB_TYPE = {
value = "mysql"
}
OWNCLOUD_DB_NAME = {
value_from = {
secret_key_ref = {
name = "owncloud-db-terraform"
key = "DB_DATABASE_NAME"
}
}
}
OWNCLOUD_DB_USERNAME = {
value_from = {
secret_key_ref = {
name = "owncloud-db-terraform"
key = "DB_USERNAME"
}
}
}
OWNCLOUD_DB_PASSWORD = {
value_from = {
secret_key_ref = {
name = "owncloud-db-terraform"
key = "DB_PASSWORD"
}
}
}
OWNCLOUD_DB_HOST = {
value_from = {
secret_key_ref = {
name = "owncloud-db-terraform"
key = "DB_HOST"
}
}
}
OWNCLOUD_ADMIN_USERNAME = {
value = "admin"
}