This document explains how to deploy your workload with an existing Azure Lustre cluster using Lustre CSI driver.
-
Download static provision storage class and PVC file.
-
Edit the
EXISTING_LUSTRE_FS_NAME
andEXISTING_LUSTRE_IP_ADDRESS
in storage class. -
Create storage class and
PVC
kubectl create -f storageclass_existing_lustre.yaml
kubectl create -f pvc_storageclass.yaml
-
Edit the
EXISTING_LUSTRE_FS_NAME
,EXISTING_LUSTRE_IP_ADDRESS
andUNIQUE_IDENTIFIER_VOLUME_ID
in pv. -
Create PV and PVC.
kubectl create -f pv.yaml
kubectl create -f pvc_pv.yaml
- Make sure pvc is created and in Bound status after a while
kubectl describe pvc pvc-lustre
-
Download demo pod echo date
-
Create the POD with PVC mount
kubectl create -f pod_echo_date.yaml
- Execute
df -h
command in the container and you can see the volume is mounted
$ kubectl exec -it lustre-echo-date -- df -h
Filesystem Size Used Available Use% Mounted on
...
${ip}@tcp:/${fs} 976.6G 154.7G 821.9G 16% /mnt/lustre
...