Restructure: servers/legion/ layout, rename repo to infrastructure
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Shared Postgres — Kong, app databases
|
||||
resource "helm_release" "postgres" {
|
||||
name = "postgres"
|
||||
namespace = kubernetes_namespace.platform.metadata[0].name
|
||||
repository = "oci://registry-1.docker.io/bitnamicharts"
|
||||
chart = "postgresql"
|
||||
|
||||
timeout = 600
|
||||
|
||||
set {
|
||||
name = "auth.postgresPassword"
|
||||
value = var.postgres_password
|
||||
}
|
||||
|
||||
set {
|
||||
name = "primary.persistence.size"
|
||||
value = "20Gi"
|
||||
}
|
||||
|
||||
set {
|
||||
name = "primary.resources.requests.memory"
|
||||
value = "256Mi"
|
||||
}
|
||||
|
||||
set {
|
||||
name = "primary.resources.requests.cpu"
|
||||
value = "100m"
|
||||
}
|
||||
|
||||
set {
|
||||
name = "primary.initdb.scripts.create-kong-db\\.sql"
|
||||
value = "CREATE DATABASE kong; CREATE USER kong WITH PASSWORD '${var.kong_db_password}'; GRANT ALL PRIVILEGES ON DATABASE kong TO kong; ALTER DATABASE kong OWNER TO kong;"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user