This document explains how to deploy your workload with an existing Azure Managed Lustre cluster using the Lustre CSI driver.
-
Download static provision storage class and persistent volume claim file.
-
Edit the
EXISTING_LUSTRE_IP_ADDRESSin the storage class. -
Create the storage class and persistent volume claim
kubectl create -f storageclass_existing_lustre.yaml
kubectl create -f pvc_storageclass.yaml
-
Edit the
EXISTING_LUSTRE_IP_ADDRESSandUNIQUE_IDENTIFIER_VOLUME_IDin the 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 -hcommand 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
...