Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to use persistent volumes in mr3worker pods

4 views
Skip to first unread message

David Engel

unread,
Apr 17, 2025, 6:25:28 PMApr 17
to MR3
Useing the typescript configuration method in MR3 1.x, we were able to
mount extra persistent volumes in mr3worker pods by abusing
WORK_DIR_PERSISTENT_VOLUME_CLAIM_MOUNT_DIR in env.sh. For example, we
could have the following in env.sh and the image scripts which
launched mr3worker pods would arrange to mount the extradir-pvc on
/extra.

WORK_DIR_PERSISTENT_VOLUME_CLAIM=workdir-pvc
WORK_DIR_PERSISTENT_VOLUME_CLAIM_MOUNT_DIR=/opt/mr3-run/work-dir,extradirdir-pvc=/extra

This doesn't appear to work any more, at least when using the
Kubernets scripts configuration method. How can we mount our own PVs
in mr3worker pods in MR3 2.0?

David
--
David Engel
da...@istwok.net

Sungwoo Park

unread,
Apr 17, 2025, 8:24:46 PMApr 17
to MR3
This hack continues to work. I tested it on my own cluster:

WORK_DIR_PERSISTENT_VOLUME_CLAIM=workdir-pvc
WORK_DIR_PERSISTENT_VOLUME_CLAIM_MOUNT_DIR=/opt/mr3-run/work-dir,workdir-pvc-ats=/opt/mr3-run/host-lib

This also works where /foot/bar is non-existent inside worker containers.

WORK_DIR_PERSISTENT_VOLUME_CLAIM_MOUNT_DIR=/opt/mr3-run/work-dir,workdir-pvc-ats=/foo/bar

Perhaps it is due to PV or PVC.

--- Sungwoo
Reply all
Reply to author
Forward
0 new messages