-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample_pv.yaml
30 lines (30 loc) · 1.24 KB
/
example_pv.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-example
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
storageClassName: lustre-fs
persistentVolumeReclaimPolicy: Retain
# Reserve this PV for the matching PVC.
claimRef:
kind: PersistentVolumeClaim
name: pvc-example
namespace: default
# Represent the volume as managed by an external CSI volume driver
# https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#csipersistentvolumesource-v1-core
csi:
# Driver is the name of the driver to use for this volume. Must match the CSIDriver's metadata.name found in driver.yaml.
driver: lustre-csi.hpe.com
# VolumeHandle is the unique volume name returned by the CSI volume plugin's CreateVolume to refer to
# the volume on all subsequent calls. For Lustre, this is the NID list of the filesystem MGS, and may have varying
# formats based on the networking interface type. Example formats:
# - RoCE = <ip_addr>@tcp:/<fs_name>,
# - Infiniband = <ip_addr>@o2ib:/<fs_name>
volumeHandle: "172.0.0.1@tcp:/maui"
# Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs".
fsType: lustre