27 lines
No EOL
497 B
YAML
27 lines
No EOL
497 B
YAML
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: harbor-pv
|
|
namespace: harbor
|
|
spec:
|
|
storageClassName: hostpath
|
|
persistentVolumeReclaimPolicy: Retain
|
|
capacity:
|
|
storage: 5Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
hostPath:
|
|
path: "/mnt/MainPool/Kubernetes/harbor"
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: harbor-pv-claim
|
|
namespace: harbor
|
|
spec:
|
|
storageClassName: hostpath
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 5Gi |