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