Skip to content
Discussion options

You must be logged in to vote

Hi @0bach0 ,

there seems to be a check that forces readOnly to be set on all volumeMounts except emptyDir and PVCs:

vNames := make(sets.Set[string])
for _, v := range rs.PodSpec.Volumes {
if v.EmptyDir != nil || v.PersistentVolumeClaim != nil {
vNames.Insert(v.Name)
}
}
vms := container.VolumeMounts
for i := range vms {
if !vNames.Has(vms[i].Name) {
vms[i].ReadOnly = true
}
}

I guess you could workaround by creating a PV and PVC for the hostPath mount and use that one?

Without any background how you would do this usually with vllm I'm questi…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dprotaso
Comment options

Answer selected by 0bach0
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants