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

Cannot use local image #10926

Closed
BoyChai opened this issue Sep 23, 2024 · 2 comments
Closed

Cannot use local image #10926

BoyChai opened this issue Sep 23, 2024 · 2 comments

Comments

@BoyChai
Copy link

BoyChai commented Sep 23, 2024

Environmental Info:
K3s Version:

[root@node1 ~]# k3s -v
k3s version v1.30.4+k3s1 (98262b5)
go version go1.22.5
Node(s) CPU architecture, OS, and Version:

Linux node1.k3s.workstation.boychai.xyz 5.14.0-427.13.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 1 19:11:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:

2server 3agents
Describe the bug:

This is the status

[root@node1 ~]# kubectl get pod -A
NAMESPACE     NAME                                      READY   STATUS              RESTARTS   AGE
kube-system   coredns-576bfc4dc7-crzlx                  0/1     ContainerCreating   0          7m10s
kube-system   local-path-provisioner-6795b5f9d8-sqknd   0/1     ContainerCreating   0          41m
kube-system   metrics-server-557ff575fb-sph8n           0/1     ContainerCreating   0          41m

This is detailed information

  Normal   Scheduled               34s   default-scheduler  Successfully assigned kube-system/coredns-576bfc4dc7-crzlx to node4.k3s.workstation.boychai.xyz
  Warning  FailedCreatePodSandBox  4s    kubelet            Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 116.89.243.8:443: i/o timeout

I am aware that this is a network issue, so I went to the mirror station to download the corresponding image, but it did not work. I even downloaded this image for every node of mine.

[root@node1 ~]# kubectl -n kube-system describe pod coredns-576bfc4dc7-crzlx|grep Node
Node:                 node4.k3s.workstation.boychai.xyz/192.16.1.24
Node-Selectors:               kubernetes.io/os=linux
[root@node1 ~]# 
[root@node1 ~]# ssh [email protected]
[email protected]'s password: 
Last login: Mon Sep 23 10:25:24 2024 from 192.16.1.21
[root@node4 ~]# ctr -n k8s.io images list
REF                                                                     TYPE                                                 DIGEST                                                                  SIZE      PLATFORMS   LABELS                          
docker.io/rancher/pause:3.6                                             application/vnd.docker.distribution.manifest.v2+json sha256:74bf6fc6be13c4ec53a86a5acf9fdbc6787b176db0693659ad6ac89f115e182c 291.0 KiB linux/amd64 io.cri-containerd.image=managed 
sha256:6270bb605e12e581514ada5fd5b3216f727db55dc87d5889c790e4c760683fee application/vnd.docker.distribution.manifest.v2+json sha256:74bf6fc6be13c4ec53a86a5acf9fdbc6787b176db0693659ad6ac89f115e182c 291.0 KiB linux/amd64 io.cri-containerd.image=managed 
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rancher/pause:3.6    application/vnd.docker.distribution.manifest.v2+json sha256:74bf6fc6be13c4ec53a86a5acf9fdbc6787b176db0693659ad6ac89f115e182c 291.0 KiB linux/amd64 io.cri-containerd.image=managed 

Steps To Reproduce:

  • Installed K3s:
    Once installed, it will appear
@BoyChai
Copy link
Author

BoyChai commented Sep 23, 2024

Topology Spread Constraints:  kubernetes.io/hostname:DoNotSchedule when max skew 1 is exceeded for selector k8s-app=kube-dns
Events:
  Type     Reason                  Age                    From               Message
  ----     ------                  ----                   ----               -------
  Normal   Scheduled               12m                    default-scheduler  Successfully assigned kube-system/coredns-576bfc4dc7-crzlx to node4.k3s.workstation.boychai.xyz
  Warning  FailedCreatePodSandBox  11m (x2 over 12m)      kubelet            Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 116.89.243.8:443: i/o timeout
  Warning  FailedCreatePodSandBox  10m                    kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 116.89.243.8:443: i/o timeout
  Warning  FailedCreatePodSandBox  9m4s (x2 over 9m49s)   kubelet            Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 199.16.156.7:443: i/o timeout
  Warning  FailedCreatePodSandBox  6m52s (x3 over 8m19s)  kubelet            Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 128.121.243.107:443: i/o timeout
  Warning  FailedCreatePodSandBox  6m9s                   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 128.121.243.107:443: i/o timeout
  Warning  FailedCreatePodSandBox  4m42s (x2 over 5m27s)  kubelet            Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 159.138.20.20:443: i/o timeout
  Warning  FailedCreatePodSandBox  3m58s                  kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 159.138.20.20:443: i/o timeout
  Warning  FailedCreatePodSandBox  2m31s                  kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 173.252.248.244:443: i/o timeout
  Warning  FailedCreatePodSandBox  65s (x3 over 3m15s)    kubelet            Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 173.252.248.244:443: i/o timeout
  Warning  FailedCreatePodSandBox  23s                    kubelet            (combined from similar events): Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "docker.io/rancher/mirrored-pause:3.6": failed to resolve reference "docker.io/rancher/mirrored-pause:3.6": failed to do request: Head "https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6": dial tcp 185.45.7.97:443: i/o timeout

@BoyChai
Copy link
Author

BoyChai commented Sep 23, 2024

I got the wrong name based on the mirror imagerancher/mirrored-pause:3.6

@BoyChai BoyChai closed this as completed Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

1 participant