From bc6f406a59a7541edb711626eb2f2e520e74c65b Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 26 Feb 2021 12:24:45 -0700 Subject: [PATCH 1/2] codeinsights-db: correct data volume path Signed-off-by: Stephen Gutekanst --- base/codeinsights-db/codeinsights-db.Deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/codeinsights-db/codeinsights-db.Deployment.yaml b/base/codeinsights-db/codeinsights-db.Deployment.yaml index 28c50bc4aeeb..8b101d08883e 100644 --- a/base/codeinsights-db/codeinsights-db.Deployment.yaml +++ b/base/codeinsights-db/codeinsights-db.Deployment.yaml @@ -42,7 +42,7 @@ spec: cpu: "4" memory: 2Gi volumeMounts: - - mountPath: /data + - mountPath: /var/lib/postgresql/data/ name: disk - mountPath: /conf name: timescaledb-conf From 0f90a1e386fdece19ad4d431032ba00e7aa1e171 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 26 Feb 2021 15:41:24 -0700 Subject: [PATCH 2/2] set PGDATA See https://github.com/sourcegraph/deploy-sourcegraph-docker/pull/269 Signed-off-by: Stephen Gutekanst --- base/codeinsights-db/codeinsights-db.Deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/codeinsights-db/codeinsights-db.Deployment.yaml b/base/codeinsights-db/codeinsights-db.Deployment.yaml index 8b101d08883e..00437c9de868 100644 --- a/base/codeinsights-db/codeinsights-db.Deployment.yaml +++ b/base/codeinsights-db/codeinsights-db.Deployment.yaml @@ -30,6 +30,8 @@ spec: env: - name: POSTGRES_PASSWORD # Accessible by Sourcegraph applications on the network only, so password auth is not used. value: password + - name: PGDATA + value: /var/lib/postgresql/data/pgdata terminationMessagePolicy: FallbackToLogsOnError ports: - containerPort: 5432