Skip to content

Volumes

YAML
apiVersion: v1
kind: PersistentVolume
metadata:
  namespace: durbok-xyz
  name: wp-data
  labels:
    type: local
spec:
  storageClassName: durbok-xyz
  capacity:
    storage: 10Gi
  accessModes:
    - ReadWriteMany
  hostPath:
    path: "/kvol/durbok.xyz/wp-data"

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: wp-data
  namespace: durbok-xyz
spec:
  storageClassName: durbok-xyz
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 10Gi
Back to top