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

How to manually import calico images to local #8978

Open
huanghaiqing1 opened this issue Jul 4, 2024 · 4 comments
Open

How to manually import calico images to local #8978

huanghaiqing1 opened this issue Jul 4, 2024 · 4 comments

Comments

@huanghaiqing1
Copy link

huanghaiqing1 commented Jul 4, 2024

My site can't use docker pull to get calico images to local(Rocky os 8 latest) by internet for setup k8s. Here I download the full package: release-v3.28.0.tgz to local and try pull these images to local and make tag for configure network of k8s. Is there any related README about how to import these images?

Events:
Type Reason Age From Message


Normal BackOff 90m (x1514 over 17h) kubelet Back-off pulling image "docker.io/calico/pod2daemon-flexvol:v3.28.0"
Warning Failed 85m (x112 over 16h) kubelet (combined from similar events): Failed to pull image "docker.io/calico/pod2daemon-flexvol:v3.28.0": rpc error: code = DeadlineExceeded desc = failed to pull and unpack image "docker.io/calico/pod2daemon-flexvol:v3.28.0": failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/58/587b28ecfc62e2a60919e6a39f9b25be37c77da99d8c84252716fa3a49a171b9/data?verify=1720067032-UAyJpzOYNBEiBGCv%!F(MISSING)%!F(MISSING)OTJ4WQV2o%!D(MISSING)": dial tcp 199.59.149.208:443: i/o timeout
Warning FailedMount 13m kubelet MountVolume.SetUp failed for volume "tigera-ca-bundle" : object "calico-system"/"tigera-ca-bundle" not registered
Warning FailedMount 13m kubelet MountVolume.SetUp failed for volume "node-certs" : object "calico-system"/"node-certs" not registered
Normal SandboxChanged 13m kubelet Pod sandbox changed, it will be killed and re-created.
Warning Failed 12m kubelet Failed to pull image "docker.io/calico/pod2daemon-flexvol:v3.28.0": failed to pull and unpack image "docker.io/calico/pod2daemon-flexvol:v3.28.0": failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/58/587b28ecfc62e2a60919e6a39f9b25be37c77da99d8c84252716fa3a49a171b9/data?verify=1720071385-TNktrfBxfbLLAVBL4OwGapHhZlY%3D": dial tcp 31.13.85.169:443: i/o timeout
Warning Failed 11m (x2 over 11m) kubelet Failed to pull image "docker.io/calico/pod2daemon-flexvol:v3.28.0": failed to pull and unpack image "docker.io/calico/pod2daemon-flexvol:v3.28.0": mkdir /var/lib/containerd/io.containerd.content.v1.content/ingest/bdda3d115b639779fe247e7698875486c900c20a8dad8acfddecb8fd2ba47918: no space left on device
Warning Failed 10m (x5 over 12m) kubelet Error: ImagePullBackOff
Normal Pulling 10m (x4 over 13m) kubelet Pulling image "docker.io/calico/pod2daemon-flexvol:v3.28.0"
Warning Failed 9m34s (x4 over 12m) kubelet Error: ErrImagePull
Warning Failed 9m34s kubelet Failed to pull image "docker.io/calico/pod2daemon-flexvol:v3.28.0": failed to pull and unpack image "docker.io/calico/pod2daemon-flexvol:v3.28.0": failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/58/587b28ecfc62e2a60919e6a39f9b25be37c77da99d8c84252716fa3a49a171b9/data?verify=1720071572-3YHRF4mXlSw0wK4N8Alanu4iomo%3D": dial tcp 159.106.121.75:443: i/o timeout
Normal BackOff 3m32s (x25 over 12m) kubelet Back-off pulling image "docker.io/calico/pod2daemon-flexvol:v3.28.0"

@caseydavenport
Copy link
Member

Probably would suggest starting with this document and reporting back if that's not sufficient: https://docs.tigera.io/calico/latest/operations/image-options/alternate-registry

@coutinhop
Copy link
Contributor

Probably would suggest starting with this document and reporting back if that's not sufficient: https://docs.tigera.io/calico/latest/operations/image-options/alternate-registry

To add a bit, you'll probably need to build the images locally (or import the tars) + push them to your private registry, then use the latter half of that doc to configure Calico to use your images

@huanghaiqing1
Copy link
Author

huanghaiqing1 commented Jul 17, 2024 via email

@huanghaiqing1
Copy link
Author

huanghaiqing1 commented Jul 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants