Does rke2 support ImageVolume?
# rke2
r
Does rke2 support ImageVolume?
c
imagevolume support requires a container runtime that supports it. If you are using a version of rke2 that includes containerd 2.1, or are using an external container runtime that supports it, then yes.
r
kubernetes 1.33.5 so yes
I tried to enable it by adding to config these lines kube-apiserver-arg: - "feature-gates=ImageVolumes=true" kube-controller-manager-arg: - "feature-gates=ImageVolumes=true" but did not seem to work
c
you didn’t enable it in the kubelet?
I would probably just use a kubernetes release where it’s not beta… so you don’t have to go through each component and enable the feature-gate
r
So I need to wait?
c
well either that or enable it everywhere…
r
okay. Thanks
c
if you’re going to play around with off-by-default feature gates, you need to make sure you enable them for all the components that need the feature enabled. The kubelet is responsible for mounting volumes, so if it’s still disabled for the kubelet… it won’t work
but this is just normal Kubernetes feature-gate behavior, nothing specific to rke2
r
okay. I could not find any documentation for rke2 so I used BadGPT