github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/mysql-wordpress-pd/local-volumes.yaml (about) 1 apiVersion: v1 2 kind: PersistentVolume 3 metadata: 4 name: local-pv-1 5 labels: 6 type: local 7 spec: 8 capacity: 9 storage: 20Gi 10 accessModes: 11 - ReadWriteOnce 12 hostPath: 13 path: /tmp/data/pv-1 14 --- 15 apiVersion: v1 16 kind: PersistentVolume 17 metadata: 18 name: local-pv-2 19 labels: 20 type: local 21 spec: 22 capacity: 23 storage: 20Gi 24 accessModes: 25 - ReadWriteOnce 26 hostPath: 27 path: /tmp/data/pv-2