In Kubernetes, to ensure that data persists beyond the lifecycle of a given Pod, you can use Persistent Volume Claims (PVCs). A PVC is a request for storage by a user that can be provisioned from a Persistent Volume (PV). This mechanism allows you to abstract the details of how the storage is provided and how it’s consumed. In SUNK, each Slurm node is deployed in a Kubernetes Pod, which can mount shared PVCs in the normal manner. SUNK provides a mechanism to map the Kubernetes Pod’s PVC to a specified mount location within the Slurm node. Multiple Slurm nodes can mount the same PVC. This is particularly useful when managing jobs that require sharing access between developers or researchers, storing user home directories, and saving job output for further processing.Documentation Index
Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
Use this file to discover all available pages before exploring further.
Create shared storage
In this example, three PVCs are mounted to the Slurm compute nodes. To get started, create three PVCs in the cluster with a Container Storage Interface (CSI) driver that supports theReadWriteMany access mode. For more information on creating PVCs, see the Kubernetes documentation on Persistent Volumes.
Use the following names:
data-rootdata-nvmedata-hdd
Mount PVCs
Mount the PVCs to the Slurm nodes by adding thevolumeMounts and volumes keys in the compute section of values.yaml:
values.yaml example.
Login node
For convenience, the login node automatically has anyvolumeMounts and volumes added to it that are specified for the compute nodes in values.yaml. There is no need to specify these again for the login node.
Using shared storage
Once the PVCs are mounted, you can use them as you would any other storage. For example, you can create a directory in the PVC and use it to store job output, as shown below:data-root. This is useful if you’re not using LDAP and connecting with kubectl exec, and you have helper scripts or other files in the root home directory.