Repository navigation
[Core] Mount PVC-backed models into ISVC pods - #656
Merged
Merged
Conversation
pallasathena92
requested review from
CatherineSue,
YouNeedCryDear,
beiguo218 and
slin1237
as code owners
July 7, 2026 20:28
slin1237
approved these changes
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this PR does
Makes PVC-backed BaseModels servable by mounting the PVC into
InferenceService pods. A
pvc://model hasStorage.Path == nil(nothingis downloaded to a node), so the existing HostPath-based volume/mount logic
never fires for it — the pod would come up with no model. This adds PVC
handling to pod-spec assembly.
Why we need it
This is the serving-side half of PVC support. The BaseModel controller can
bring a
pvc://model to Ready, but without mounting the claim into theserving pod the model isn't reachable. PVC is the natural source for
pre-provisioned / air-gapped weights on shared storage (CSI, NFS, Lustre) —
no per-node download, no egress.
What changes
components/pvc.go(new) — pure helpers (isPVCBaseModel,parsePVCComponents, and the StorageSpec-levelisPVCStorage/parsePVCStorage) overpkg/utils/storage.components/base.gofunctions (each falls backto the existing HostPath/Path behavior for non-PVC models):
UpdatePodSpecVolumes— aPersistentVolumeClaimVolumeSource{ClaimName, ReadOnly}instead of a HostPath volume.UpdateVolumeMounts— mount atModelDefaultMountPathwithSubPathset to the model's sub-path within the claim, read-only.
UpdatePodSpecNodeSelector— skip the per-node model-ready affinity:PVCs aren't node-pinned and the model agent never labels nodes for them,
so that selector would leave the pod unschedulable. Runtime /
AcceleratorClass node selectors still apply.
UpdateEnvVariables— setMODEL_PATHtoModelDefaultMountPath(
Storage.Pathis nil for PVC).Fixes #
How to test
Checklist
make testpasses locally