27 lines
516 B
YAML
27 lines
516 B
YAML
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: mariadb-pv
|
|
namespace: database
|
|
spec:
|
|
storageClassName: hostpath
|
|
persistentVolumeReclaimPolicy: Retain
|
|
capacity:
|
|
storage: 12Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
hostPath:
|
|
path: "/mnt/MainPool/Kubernetes/databases/mariadb"
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: mariadb-pv-claim
|
|
namespace: database
|
|
spec:
|
|
storageClassName: hostpath
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 12Gi |