To mount a Datashim Dataset into a Pod, add specific labels to the Pod's metadata. The labels follow the pattern dataset.<index>.id and dataset.<index>.useas.
For example, to mount a dataset named model-weights as a volume, use:
dataset.0.id: "model-weights"dataset.0.useas: "mount"
Once mounted, the files from the object storage bucket will be available at /mnt/datasets/<dataset-name>/ within the container.
apiVersion: v1
kind: Pod
metadata:
name: text-generation-inference
labels:
dataset.0.id: "model-weights"
dataset.0.useas: "mount"
spec:
containers:
- name: text-generation-inference
# ...