update db to postgres:18
All checks were successful
renovate / renovate (push) Successful in 5m37s

This commit is contained in:
2025-10-31 16:26:33 +05:30
parent 4cc211a5d0
commit 72608dc3d1
2 changed files with 10 additions and 10 deletions

View File

@@ -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

View File

@@ -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