From 592d24ce9667fe3b5e576af4782f572589b58e12 Mon Sep 17 00:00:00 2001 From: mr-forust Date: Mon, 14 Sep 2026 10:41:46 +0200 Subject: [PATCH] feat(postgres): migrate apps to shared database Move Authentik and Netronome to the shared PostgreSQL service after logical dump and restore. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- authentik/k8s/config.yaml | 2 +- netronome/k8s/config.yaml | 2 +- postgres/k8s/postgres.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/authentik/k8s/config.yaml b/authentik/k8s/config.yaml index f888be8..0d3c4e5 100644 --- a/authentik/k8s/config.yaml +++ b/authentik/k8s/config.yaml @@ -6,6 +6,6 @@ metadata: data: AUTHENTIK_IMAGE: ghcr.io/goauthentik/server AUTHENTIK_TAG: "2025.10.2" - AUTHENTIK_POSTGRESQL__HOST: authentik-postgres-service + AUTHENTIK_POSTGRESQL__HOST: postgres.database.svc.cluster.local AUTHENTIK_POSTGRESQL__NAME: authentik AUTHENTIK_ERROR_REPORTING__ENABLED: "true" diff --git a/netronome/k8s/config.yaml b/netronome/k8s/config.yaml index fa4f125..23ac87a 100644 --- a/netronome/k8s/config.yaml +++ b/netronome/k8s/config.yaml @@ -5,7 +5,7 @@ metadata: namespace: netronome data: NETRONOME__DB_TYPE: "postgres" - NETRONOME__DB_HOST: "netronome-postgres-service" + NETRONOME__DB_HOST: "postgres.database.svc.cluster.local" NETRONOME__DB_PORT: "5432" NETRONOME__DB_NAME: "netronome" NETRONOME__DB_SSLMODE: "disable" diff --git a/postgres/k8s/postgres.yaml b/postgres/k8s/postgres.yaml index 6a605ba..531ff3b 100644 --- a/postgres/k8s/postgres.yaml +++ b/postgres/k8s/postgres.yaml @@ -75,6 +75,7 @@ spec: name: postgres-data spec: accessModes: ["ReadWriteOnce"] + storageClassName: local-path-retain resources: requests: storage: 20Gi