27 lines
No EOL
517 B
YAML
27 lines
No EOL
517 B
YAML
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: harbor-registry-pv
|
|
namespace: default
|
|
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
|
|
namespace: default
|
|
spec:
|
|
storageClassName: hostpath
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 2Gi |