Skip to content
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

Should it be possible to load a custom docker image into the cluster? #335

Open
mkonecny-atlassian opened this issue Nov 26, 2024 · 1 comment

Comments

@mkonecny-atlassian
Copy link

Hi
I am trying to understand whether it should be possible to load a custom docker image, created via eg maven build, into the configured testcontainer running the Kind/K3s cluster. My Deployment fails as the custom image isn't present, and normally I would do kind load docker-image <myimage> but that is not possible here...

@cmoulliard
Copy link
Contributor

kind load docker-image

Such a command, which is executed post creation of a cluster, on an existing cluster will create a tarball of an image and upload it within the container running kindnet as this is where the internal CRI engine is running

root@dummy-control-plane:/# crictl images
IMAGE                                                TAG                  IMAGE ID            SIZE
docker.io/gitea/gitea                                1.22.0-rootless      af01371cf5692       65.7MB
docker.io/kindest/kindnetd                           v20240813-c6f155d6   6a23fa8fd2b78       33.3MB
docker.io/kindest/local-path-helper                  v20230510-486859a6   d022557af8b63       2.92MB
docker.io/kindest/local-path-provisioner             v20240813-c6f155d6   282f619d10d4d       17.4MB
docker.io/library/redis                              7.0.14-alpine        6b735fc40976a       13.5MB
quay.io/argoproj/argocd                              v2.10.7              689f27f16d7be       163MB
registry.k8s.io/coredns/coredns                      v1.11.1              2437cf7621777       16.5MB
registry.k8s.io/etcd                                 3.5.12-0             014faa467e297       66.2MB
registry.k8s.io/kube-apiserver-arm64                 v1.30.3              841e6c258674c       86.7MB
registry.k8s.io/kube-apiserver                       v1.30.3              841e6c258674c       86.7MB
registry.k8s.io/kube-controller-manager-arm64        v1.30.3              e1128ddcf1cb4       81MB
registry.k8s.io/kube-controller-manager              v1.30.3              e1128ddcf1cb4       81MB
registry.k8s.io/kube-proxy-arm64                     v1.30.3              4e936f1cdc7bf       89.2MB
registry.k8s.io/kube-proxy                           v1.30.3              4e936f1cdc7bf       89.2MB
registry.k8s.io/kube-scheduler-arm64                 v1.30.3              cbb8ccc1f83d2       61.6MB
registry.k8s.io/kube-scheduler                       v1.30.3              cbb8ccc1f83d2       61.6MB
registry.k8s.io/ingress-nginx/kube-webhook-certgen   <none>               420193b27261a       22.1MB
registry.k8s.io/pause                                3.10                 afb61768ce381       268kB

This is technically doable to implement that but I don't think that this is the purpose of this project.

WDYT ? @dajudge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants