k3s-cluster/cluster/apps/monitoring/kube-prometheus-stack/prom-pv.yaml

16 lines
356 B
YAML

apiVersion: v1
kind: PersistentVolume
metadata:
name: prometheus-pv
namespace: monitoring
labels:
app.kubernetes.io/name: kube-prometheus-stack-pv
spec:
storageClassName: hostpath
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 30Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/MainPool/Kubernetes/prometheus"