From 3d28650c1ba2680857e5b2f90dcb4a5d5bc0bf1f Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Fri, 6 Feb 2026 00:37:51 +0100 Subject: [PATCH] add pv for new postgres' gitea cluster --- apps/gitea/kustomization.yaml | 1 + apps/gitea/postgres-volume.yaml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 apps/gitea/postgres-volume.yaml diff --git a/apps/gitea/kustomization.yaml b/apps/gitea/kustomization.yaml index bad871b..584d283 100644 --- a/apps/gitea/kustomization.yaml +++ b/apps/gitea/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - namespace.yaml + - postgres-volume.yaml - postgres-cluster.yaml - release.yaml - secret.yaml diff --git a/apps/gitea/postgres-volume.yaml b/apps/gitea/postgres-volume.yaml new file mode 100644 index 0000000..82e62ae --- /dev/null +++ b/apps/gitea/postgres-volume.yaml @@ -0,0 +1,32 @@ +apiVersion: local.openebs.io/v1alpha1 +kind: LVMVolume +metadata: + labels: + kubernetes.io/nodename: anapistula-delrosalae + name: gitea-postgresql-cluster-lvmhdd-1 + namespace: openebs +spec: + capacity: 20Gi + ownerNodeID: anapistula-delrosalae + shared: "yes" + thinProvision: "no" + vgPattern: ^openebs-hdd$ + volGroup: openebs-hdd +--- +kind: PersistentVolume +apiVersion: v1 +metadata: + name: gitea-postgresql-cluster-lvmhdd-1 +spec: + capacity: + storage: 20Gi + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Retain + storageClassName: openebs-lvmpv + volumeMode: Filesystem + csi: + driver: local.csi.openebs.io + volumeHandle: gitea-postgresql-cluster-lvmhdd-1 +--- +# PVCs are dynamically created by the Postgres operator