k3s-cluster/cluster/apps/harbor/harbor-pv.yaml

27 lines
497 B
YAML
Raw Permalink Normal View History

2023-04-16 05:05:17 +00:00
apiVersion: v1
kind: PersistentVolume
metadata:
2023-04-16 06:06:11 +00:00
name: harbor-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:
2023-04-16 06:06:11 +00:00
storage: 5Gi
2023-04-16 05:05:17 +00:00
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/MainPool/Kubernetes/harbor"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
2023-04-16 06:06:11 +00:00
name: harbor-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:
2023-04-16 06:06:11 +00:00
storage: 5Gi