k3s-cluster/cluster/apps/default/harbor/harbor-pv.yaml
2023-04-16 01:05:17 -04:00

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