Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 1.48 KB

File metadata and controls

68 lines (44 loc) · 1.48 KB

Static Provisioning

This document explains how to deploy your workload with an existing Azure Managed Lustre cluster using the Lustre CSI driver.

 

Create a Volume bound to an existing Azure Managed Lustre cluster

Option 1: Use Storage Class

kubectl create -f storageclass_existing_lustre.yaml
kubectl create -f pvc_storageclass.yaml

 

Option 2: Use PV

  • Download PV file and PVC file

  • Edit the EXISTING_LUSTRE_IP_ADDRESS and UNIQUE_IDENTIFIER_VOLUME_ID in the pv.

  • Create PV and PVC.

kubectl create -f pv.yaml
kubectl create -f pvc_pv.yaml

 

Use the Volume

  • Make sure pvc is created and in Bound status after a while
kubectl describe pvc pvc-lustre
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
...