Help Needed on Running Image Volume Feature #8499
-
I'd like to try the image volume feature in Kubernetes v1.31 (https://kubernetes.io/docs/tasks/configure-pod-container/image-volumes/), so I rebuilt a Minikube Docker image to update CRI-O to v1.30.4. My Minikube start command is as follows: minikube stop
minikube delete
minikube image load kicbase:crio-v1.30.4
minikube start --container-runtime=cri-o --kubernetes-version=v1.31.0 --feature-gates=ImageVolume=true --base-image="kicbase:crio-v1.30.4" Everything seemed fine, but after applying a YAML file for a pod with an OCI image volume, the pod failed to start with the following error: ---
apiVersion: v1
kind: Pod
metadata:
name: pod
spec:
containers:
- name: test
image: ubuntu:22.04
command: ["sleep", "infinity"]
imagePullPolicy: IfNotPresent
volumeMounts:
- name: oci-volume
mountPath: /volume
volumes:
- name: oci-volume
image:
reference: ubuntu:20.04
pullPolicy: IfNotPresent
I double-checked all the versions, and everything looks good: ➜ OCIVolume docker exec -it minikube bash
root@minikube:/# crio --version
crio version 1.30.4
Version: 1.30.4
GitCommit: dbc00ffd41a487c847158032193b6dca9b49e821
GitCommitDate: 2024-08-01T06:57:46Z
GitTreeState: clean
BuildDate: 1970-01-01T00:00:00Z
GoVersion: go1.22.0
Compiler: gc
Platform: linux/arm64
Linkmode: static
BuildTags:
static
netgo
osusergo
exclude_graphdriver_btrfs
exclude_graphdriver_devicemapper
seccomp
apparmor
selinux
LDFlags: unknown
SeccompEnabled: true
AppArmorEnabled: false
root@minikube:/# /var/lib/minikube/binaries/v1.31.0/kubelet --version
Kubernetes v1.31.0
root@minikube:/# ps -ef | grep kubelet
root 2348 1 2 07:28 ? 00:02:45 /var/lib/minikube/binaries/v1.31.0/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --cgroups-per-qos=false --config=/var/lib/kubelet/config.yaml --enforce-node-allocatable= --feature-gates=ImageVolume=true --hostname-override=minikube --kubeconfig=/etc/kubernetes/kubelet.conf --node-ip=192.168.49.2 I also noticed some issues mentioning Any hints on how to resolve this issue would be greatly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @yeahdongcn, thank you for the request. You need CRI-O |
Beta Was this translation helpful? Give feedback.
Hey @yeahdongcn, thank you for the request. You need CRI-O
main
orrelease-1.31
packages/binaries to be able to use the feature: https://github.com/cri-o/packaging?tab=readme-ov-file#prereleases