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

importer-prime fetching the docker image every time. #3542

Open
cybercoder opened this issue Nov 21, 2024 · 1 comment
Open

importer-prime fetching the docker image every time. #3542

cybercoder opened this issue Nov 21, 2024 · 1 comment
Labels

Comments

@cybercoder
Copy link

cybercoder commented Nov 21, 2024

The pod:

      image: quay.io/kubevirt/cdi-importer:v1.60.3
      imagePullPolicy: IfNotPresent

But it seems it getting deleted after a success.

 Normal   Pulling                 99s   kubelet                  Pulling image "quay.io/kubevirt/cdi-importer:v1.60.3"

And the node has enough disk space and there's no disk pressure:

/dev/mapper/ubuntu--vg-ubuntu--lv   30G   13G   16G  47% /

There's image when importer prime working (inevitable):

sudo ctr --namespace k8s.io images ls | grep cdi-import
quay.io/kubevirt/cdi-importer:v1.60.3                                                                                          application/vnd.docker.distribution.manifest.v2+json      sha256:14de12bf71e7050d5abaf96176da8f09f3d689a1e6f44958b17216dc6bf8a9a7 120.0 MiB linux/amd64                                                                              io.cri-containerd.image=managed
quay.io/kubevirt/cdi-importer@sha256:14de12bf71e7050d5abaf96176da8f09f3d689a1e6f44958b17216dc6bf8a9a7                          application/vnd.docker.distribution.manifest.v2+json      sha256:14de12bf71e7050d5abaf96176da8f09f3d689a1e6f44958b17216dc6bf8a9a7 120.0 MiB linux/amd64

But it disapears after the pod complete or error and destroy.

Environment:

  • CDI version: v1.60.3
@awels
Copy link
Member

awels commented Nov 22, 2024

So CDI doesn't influence the behavior of kubernetes. As you can see we set the policy to IfNotPresent, and it downloads the image if it is not present. But what kubernetes does afterwards we as CDI cannot influence.

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

No branches or pull requests

2 participants