From 2966901cf99d3c9cd2e1e6ef9f48859a47cae3a8 Mon Sep 17 00:00:00 2001 From: bom Date: Fri, 24 Jun 2022 10:54:53 +0200 Subject: [PATCH] Create volumes only using PVCs --- src/main/resources/gitea/volumes.yaml | 36 +++------------------------ 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/src/main/resources/gitea/volumes.yaml b/src/main/resources/gitea/volumes.yaml index f23cf3f..bab2996 100644 --- a/src/main/resources/gitea/volumes.yaml +++ b/src/main/resources/gitea/volumes.yaml @@ -1,19 +1,3 @@ -kind: PersistentVolume -apiVersion: v1 -metadata: - name: gitea-root-pv - namespace: default - labels: - type: local -spec: - storageClassName: manual - capacity: - storage: 5Gi - accessModes: - - ReadWriteOnce - hostPath: - path: /var/gitea/root ---- apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -27,24 +11,8 @@ spec: resources: requests: storage: 5Gi - ---- -kind: PersistentVolume -apiVersion: v1 -metadata: - name: gitea-data-pv - namespace: default - labels: - type: local -spec: - storageClassName: manual - capacity: - storage: 5Gi - accessModes: - - ReadWriteOnce hostPath: - path: /var/gitea/data - + path: /var/gitea/root --- apiVersion: v1 kind: PersistentVolumeClaim @@ -59,3 +27,5 @@ spec: resources: requests: storage: 5Gi + hostPath: + path: /var/gitea/data