From 72608dc3d1bb47110dad2d69a322edd87156ce13 Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Fri, 31 Oct 2025 16:26:33 +0530 Subject: [PATCH] update db to postgres:18 --- clusters/default/git-ops/gitea/gitea-db.yml | 16 ++++++++-------- clusters/default/git-ops/gitea/gitea-pvc.yml | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/clusters/default/git-ops/gitea/gitea-db.yml b/clusters/default/git-ops/gitea/gitea-db.yml index e099b0d..10f5476 100644 --- a/clusters/default/git-ops/gitea/gitea-db.yml +++ b/clusters/default/git-ops/gitea/gitea-db.yml @@ -18,13 +18,13 @@ spec: initContainers: - name: init-cleanup image: busybox - command: ["rm", "-rf", "/var/lib/postgresql/data/lost+found"] + command: ["rm", "-rf", "/var/lib/postgresql/lost+found"] volumeMounts: - - name: db - mountPath: /var/lib/postgresql/data + - name: gitea-db + mountPath: /var/lib/postgresql containers: - name: gitea-db - image: postgres:15.14 + image: postgres:18 ports: - containerPort: 5432 env: @@ -38,9 +38,9 @@ spec: - name: POSTGRES_DB value: "gitea" volumeMounts: - - name: db - mountPath: /var/lib/postgresql/data + - name: gitea-db + mountPath: /var/lib/postgresql volumes: - - name: db + - name: gitea-db persistentVolumeClaim: - claimName: gitea-db-longhorn + claimName: gitea-db-new-longhorn diff --git a/clusters/default/git-ops/gitea/gitea-pvc.yml b/clusters/default/git-ops/gitea/gitea-pvc.yml index bc56b61..747378a 100644 --- a/clusters/default/git-ops/gitea/gitea-pvc.yml +++ b/clusters/default/git-ops/gitea/gitea-pvc.yml @@ -17,7 +17,7 @@ spec: apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: gitea-db-longhorn + name: gitea-db-new-longhorn namespace: git-ops spec: accessModes: @@ -25,5 +25,5 @@ spec: volumeMode: Filesystem resources: requests: - storage: 5Gi + storage: 2Gi storageClassName: longhorn