serving icon indicating copy to clipboard operation
serving copied to clipboard

Support volume type "image" for volume mounting

Open rhuss opened this issue 1 year ago • 1 comments

In what area(s)?

/area API

Describe the feature

Kubernetes 1.31 introduces a new volume type "image" which allows the direct mount of OCI container images into a Pod. According to https://knative.dev/docs/serving/services/storage/ volume mounts are supported in Knative, but the type "image" is missing.

The "image" type should be added to the allow-list for possible types so that this new K8s feature can be used.

KServe would need this for introducing such image mounts for mounting model data stored in OCI images --> https://github.com/kserve/kserve/issues/3908

rhuss avatar Sep 02 '24 11:09 rhuss

As a side note we are a bit behind on tested versions (1.28, 1.29) and also we are not on 1.31 from an api pov (1.30). As it is mentioned Image type was introduced in 1.31 and it is Alpha in 1.31 https://kubernetes.io/docs/concepts/storage/volumes/#image so I guess it is a bit early but we will track it.

skonto avatar Sep 09 '24 13:09 skonto

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Dec 09 '24 01:12 github-actions[bot]

/remove-lifecycle stale

rhuss avatar Dec 09 '24 11:12 rhuss

I've started working on this issue.

Fedosin avatar May 09 '25 15:05 Fedosin

I wrote a blog post about this feature, but I really want to use image volumes with Knative. https://qiita.com/kahirokunn/items/7945dbc0e0f8a5f5e25c

Being able to separate runtime and code is the dawn of a wonderful new era.

kahirokunn avatar May 20 '25 08:05 kahirokunn