change the idea behind pvc

This commit is contained in:
2024-11-25 17:49:33 +00:00
parent 3449d074da
commit 2304d0a25c
2 changed files with 292 additions and 11 deletions
+90 -1
View File
@@ -23,15 +23,18 @@ kubernetes = {
onitama = {
enabled = true
namespace = "onitama"
image = "ghcr.io/jackadamson/onitama:latest"
service_port = 8080
database = {
}
requirements = {
limits-cpu = "50m"
limits-memory = "50Mi"
requests-cpu = "25m"
requests-memory = "25Mi"
}
# environment_variables = { PORT = 80, test = 22 }
environment = {
MY_VAR = {
value_from = {
@@ -56,6 +59,12 @@ kubernetes = {
pvc_size = "1Mi"
mount_path = "/code"
}
# database = {
# name = "databaseonitama"
# pvc_size = "1Mi"
# mount_path = "/sql"
# database = true
# }
}
}
@@ -186,6 +195,86 @@ kubernetes = {
service_port = 80
}
nextcloud-web = {
namespace = "nextcloud-terraform"
enabled = false
image = "nextcloud:29.0.3-apache"
service_port = 80
requirements = {
limits-cpu = "1000m"
limits-memory = "500Mi"
requests-cpu = "500m"
requests-memory = "25Mi"
}
environment = {
POSTGRES_HOST = {
value = "db"
}
}
pvc = {
nextcloud-webserver = {
name = "nextcloud-webserver"
pvc_size = "2Mi"
mount_path = "/var/www/html"
}
}
}
nextcloud-db = {
namespace = "nextcloud-terraform"
enabled = false
image = "docker.io/library/postgres:14"
service_port = 5432
requirements = {
limits-cpu = "1000m"
limits-memory = "500Mi"
requests-cpu = "500m"
requests-memory = "25Mi"
}
environment = {
POSTGRES_HOST = {
value = "db"
}
}
environment = {
POSTGRES_DB = {
value_from = {
secret_key_ref = {
name = "nextcloud-credentials"
key = "POSTGRES_DB"
}
}
}
POSTGRES_USER = {
value_from = {
secret_key_ref = {
name = "nextcloud-credentials"
key = "POSTGRES_USER"
}
}
}
POSTGRES_PASSWORD = {
value_from = {
secret_key_ref = {
name = "nextcloud-credentials"
key = "POSTGRES_PASSWORD"
}
}
}
PORT = {
value = "80"
}
}
pvc = {
nextcloud-database = {
name = "nextcloud-database"
pvc_size = "2Mi"
mount_path = "/var/lib/postgresql/data"
}
}
}
}