knative / serving

Kubernetes-based, scale-to-zero, request-driven compute
https://knative.dev/docs/serving/
Apache License 2.0
5.53k stars 1.15k forks source link

Support volume type "image" for volume mounting #15488

Open rhuss opened 2 weeks ago

rhuss commented 2 weeks ago

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

skonto commented 1 week ago

As a side note we are 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.