2023-04-16 05:05:17 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
|
|
|
metadata:
|
|
|
|
name: harbor-registry-pv
|
2023-04-16 05:55:15 +00:00
|
|
|
namespace: harbor
|
2023-04-16 05:05:17 +00:00
|
|
|
spec:
|
|
|
|
storageClassName: hostpath
|
|
|
|
persistentVolumeReclaimPolicy: Retain
|
|
|
|
capacity:
|
|
|
|
storage: 2Gi
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
hostPath:
|
|
|
|
path: "/mnt/MainPool/Kubernetes/harbor"
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: harbor-registry-pv-claim
|
2023-04-16 05:55:15 +00:00
|
|
|
namespace: harbor
|
2023-04-16 05:05:17 +00:00
|
|
|
spec:
|
|
|
|
storageClassName: hostpath
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 2Gi
|