Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 1.46 KB

static-provisioning.md

File metadata and controls

70 lines (46 loc) · 1.46 KB

Static Provisioning

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

 

Create a Volume bound to an existing Azure 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_FS_NAME, EXISTING_LUSTRE_IP_ADDRESS and UNIQUE_IDENTIFIER_VOLUME_ID in 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
...