Create volumes only using PVCs

This commit is contained in:
bom 2022-06-24 10:54:53 +02:00
parent 5da8acf0b5
commit 2966901cf9

View file

@ -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 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
@ -27,24 +11,8 @@ spec:
resources: resources:
requests: requests:
storage: 5Gi 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: hostPath:
path: /var/gitea/data path: /var/gitea/root
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
@ -59,3 +27,5 @@ spec:
resources: resources:
requests: requests:
storage: 5Gi storage: 5Gi
hostPath:
path: /var/gitea/data