Building for RKE2, can buildah share storage with local cluster? #3924
-
The title is pretty much my question. I have a locally running Rancher RKE2 Kubernetes "cluster" running on my local VM. I use this K8s instance for development testing. I'm just starting out with buildah as a way to build images without a Docker daemon running locally. E.g. I'm still working through how to run buildah as a regular, non-root user. But that is a different question. Ideally, I'd like the images buildah builds to show up on the runc runtime RKE2 uses when deploying pods. Are there appropriate incantations I can use in containers.conf to make this happen? In a separate-but-related issue, RKE2 can only "see" images in runc in the Thanks for any pointers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @CharlieReitzel , Thanks for creating the issue. I don't think buildah can directly share storage with your local k8s cluster specially with CRI of RKE2, afaik Easiest way would be to build and push to any local or remote registry. |
Beta Was this translation helpful? Give feedback.
Hi @CharlieReitzel , Thanks for creating the issue.
I don't think buildah can directly share storage with your local k8s cluster specially with CRI of RKE2, afaik
cri-o
can still share storage it has a similar format but other CRI managers might not do that (as in your case i think CRI iscontainerd
). But I could be wrong so tagging @containers/storage-maintainers for a confirmation.Easiest way would be to build and push to any local or remote registry.