-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageVolume support incomplete? #3745
Comments
@saschagrunert do you mind taking a look? |
/remove-kind bug The tutorial states:
Last I checked, only cri-o had image volume support yet. Note that none of this behavior is specific to kind, and any odd behaviors should be filed as bugs to github.com/kubernetes/kubernetes. |
See KEP state here: kubernetes/enhancements#4639 containerd support: containerd/containerd#10496 |
What happened:
I enabled the
ImageVolume
feature gate and attempted to create a podusing a manifest (adapted from the tutorial example ) with a peculiar twist:
the pod's main container image was empty and the image volume was
(supposed to get) mapped to the container's root (i.e.
/
, details below).Pod creation failed with the error:
For all I know, this could be a wider issue, not specific to
kind
...BTW, another surprise (for me, in any case) was that without enabling
the feature gate not only was the image volume not mounted, which I'd
totally understand, but the volume specification seemed to get ignored
silently, without any error -or even warning- to that effect.
What did you expect to happen:
I expected that a pod would get created with its root filesystem
mounted from the image volume, allowing the container to run
despite the fact that the container image was empty.
How to reproduce it (as minimally and precisely as possible):
Create a cluster with the
ImageVolume
feature gate enabled:Apply the manifest to create a pod
Describe the pod (or monitor events) to find the exact error
Anything else we need to know?:
The main container image
andraxin/emtpy
is, in fact, totally empty.as it was created by the following one-liner:
Environment:
kind version: (use
kind version
):kind v0.24.0 go1.23.1 linux/amd64
Runtime info: (use
docker info
,podman info
ornerdctl info
):docker info (click to expand)
OS (e.g. from
/etc/os-release
): GentooKubernetes version: (use
kubectl version
):Any proxies or other special environment settings?: No
The text was updated successfully, but these errors were encountered: