[k8s] Template for Slurm-like NFS on Kubernetes #4956
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a template showcasing how to do slurm-like NFS on Kubernetes. With this template, the specified
NFS_USERNAME
's home directory will be used as the SkyPilot task's home directory.Tested with multi-node k3s cluster with EFS acting as the underlying shared storage.
This is purely in user space (i.e., no code changes to SkyPilot, defined purely in the task.yaml). For deeper integration, we can consider adding a field in config that automatically sets this up and passes the current active username to be used for mounting.
Some gotchas:
sky
orroot
) and don't change it toNFS_USERNAME
. Not sure if any applications rely on it.~
, notably sky_workdir sync etc. Noted in the README.Other alternatives we considered:
/home/sky
. This is problematic because sky logs, sky workdir and skypilot-runtime will get shared across multi-node workers.