From 9462375d28b08c655cc1cfeb6b0e4e5f804d851b Mon Sep 17 00:00:00 2001 From: "pierre.geeraert" Date: Wed, 14 Oct 2026 17:34:02 +0100 Subject: [PATCH] add dependencies to namespace after many errors --- applications/database.tf | 3 +++ applications/deployment.tf | 9 +++++++++ applications/redis.tf | 3 +++ applications/secrets.tf | 3 +++ applications/variables.auto.tfvars | 8 ++++---- infrastructure/database.tf | 3 +++ infrastructure/deployment.tf | 9 +++++++++ infrastructure/redis.tf | 3 +++ infrastructure/secrets.tf | 3 +++ 9 files changed, 40 insertions(+), 4 deletions(-) diff --git a/applications/database.tf b/applications/database.tf index 1614029..fcd4a56 100644 --- a/applications/database.tf +++ b/applications/database.tf @@ -1,4 +1,7 @@ module "Database-automatic" { source = "../modules/database" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } \ No newline at end of file diff --git a/applications/deployment.tf b/applications/deployment.tf index 25322bc..f492b9c 100644 --- a/applications/deployment.tf +++ b/applications/deployment.tf @@ -1,15 +1,24 @@ module "ingress" { source = "../modules/ingress" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } module "services" { source = "../modules/services" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } module "Deployment-automatic" { source = "../modules/deployment" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } \ No newline at end of file diff --git a/applications/redis.tf b/applications/redis.tf index 946fa3b..403927f 100644 --- a/applications/redis.tf +++ b/applications/redis.tf @@ -4,4 +4,7 @@ module "Redis-automatic" { source = "../modules/redis" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } \ No newline at end of file diff --git a/applications/secrets.tf b/applications/secrets.tf index 5f1997e..561d502 100644 --- a/applications/secrets.tf +++ b/applications/secrets.tf @@ -1,4 +1,7 @@ module "Secrets-automatic" { source = "../modules/secrets" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } \ No newline at end of file diff --git a/applications/variables.auto.tfvars b/applications/variables.auto.tfvars index 2379f46..f1429da 100644 --- a/applications/variables.auto.tfvars +++ b/applications/variables.auto.tfvars @@ -1043,7 +1043,7 @@ kubernetes = { wikijs = { #enabled = false - image = "ghcr.io/requarks/wiki:2.5" + image = "ghcr.io/requarks/wiki:2.5" service_port = [3000] database = { image = "postgres:17" @@ -1100,8 +1100,8 @@ kubernetes = { immich = { #enabled = false ##was enabled replicas = 0 - image = "ghcr.io/immich-app/immich-server:v3.0.0" - service_port = [2283] + image = "ghcr.io/immich-app/immich-server:v3.0.0" + service_port = [2283] database = { image = "ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0" mountPath = "/var/lib/postgresql/data" @@ -1177,7 +1177,7 @@ kubernetes = { enabled = false ##was enabled #replicas = 0 connected_namespace = "immich" - exposed = false + exposed = false image = "ghcr.io/immich-app/immich-machine-learning:v2.5.6" service_port = [3003] environment = { diff --git a/infrastructure/database.tf b/infrastructure/database.tf index 8013ddb..8d2912b 100644 --- a/infrastructure/database.tf +++ b/infrastructure/database.tf @@ -1,4 +1,7 @@ module "Database-automatic" { source = "../modules/database" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } diff --git a/infrastructure/deployment.tf b/infrastructure/deployment.tf index 9cf7671..5f8906b 100644 --- a/infrastructure/deployment.tf +++ b/infrastructure/deployment.tf @@ -2,15 +2,24 @@ module "ingress" { source = "../modules/ingress" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } module "services" { source = "../modules/services" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } module "Deployment-automatic" { source = "../modules/deployment" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } diff --git a/infrastructure/redis.tf b/infrastructure/redis.tf index f8e4cce..e5921e8 100644 --- a/infrastructure/redis.tf +++ b/infrastructure/redis.tf @@ -1,4 +1,7 @@ module "Redis-automatic" { source = "../modules/redis" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + } \ No newline at end of file diff --git a/infrastructure/secrets.tf b/infrastructure/secrets.tf index 338ee19..dd79276 100644 --- a/infrastructure/secrets.tf +++ b/infrastructure/secrets.tf @@ -1,4 +1,7 @@ module "Secrets-automatic" { source = "../modules/secrets" kubernetes_input = var.kubernetes + + depends_on = [kubernetes_namespace_v1.automatic] + }