Docker pull rate limits

Normal Scheduled 32s default-scheduler Successfully assigned default/pod-nginx to kodekloud-control-plane
Warning Failed 30s kubelet Failed to pull image “nginx:latest”: rpc error: code = Unknown desc = failed to pull and unpack image “docker.io/library/nginx:latest”: failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/nginx/manifests/sha256:67682bda769fae1ccf5183192b8daf37b64cae99c6c3302650f6f8bf5f0f95df: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: Understanding Your Docker Hub Rate Limit | Docker

Causing all Kubernetes-related tasks to be unmanageable

I have face the same issue. To continue the lab, I have to add registry mirror to /etc/containerd/config.toml under, “[plugins.“io.containerd.grpc.v1.cri”.registry.mirrors]”

      [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
        [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
          endpoint = ["https://mirror.gcr.io"]

And restart containerd

systemctl restart containerd.service 

That’s an interesting solution to the problem. Can’t see a problem with it.

Hey @tedzhang Could you share the sudo password so I can create the /etc/containerd directory and restart the service?

Hi @Jupiter-Kung ,

Is the issue happening with KKE k8s tasks? Please confirm.

Regards,

Currently, any actions involving pulling from the Docker repository are affected, resulting in a very poor experience. If it is not restored quickly, the situation will remain problematic.