Welcome to the Linux Foundation Forum!

Lab 8.1, Error pulling image

Hello I am following the the lab exercices and I am getting error when I try to pull the ningx container from the registry

The error is : ImagePullBackOff

and when I do kubectl describe pod shell-demo here is the stacktrace :
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 5m28s default-scheduler Successfully assigned default/shell-demo to minikube
Normal Pulling 2m8s (x4 over 5m27s) kubelet Pulling image "nginx"
Warning Failed 93s (x4 over 4m52s) kubelet Failed to pull image "nginx": Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Warning Failed 93s (x4 over 4m52s) kubelet Error: ErrImagePull
Warning Failed 71s (x6 over 4m51s) kubelet Error: ImagePullBackOff
Normal BackOff 17s (x10 over 4m51s) kubelet Back-off pulling image "nginx"

and when I am reaching https://registry-1.docker.io/v2/ I am getting these :
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

and it directly respond no timeout.

can you help figuring it out please.

Comments

  • acarra
    acarra Posts: 7

    I find the solution to my problem Minikube doesn't handle pretty well VPN, It come from this issue, I can't uninstall the VPN client and the kernel module associated with it, any advice on how to troubleshoot it ?

  • chrispokorni
    chrispokorni Posts: 2,112

    Hi @acarra,

    Minikube is not the most suitable lab environment for this course. Perhaps using a local hypervisor to provision the necessary Virtual Machines will allow you to closely follow the lab guide.

    Regards,
    -Chris

  • acarra
    acarra Posts: 7

    Hello, how do your setup your network I try with bridge but I have difficulties when i try kubeadm join
    (unreachable)

  • acarra
    acarra Posts: 7

    I try with two ubuntu on lib-virt kvm (qemu)

  • acarra
    acarra Posts: 7

    I bridge them to the same interface

  • chrispokorni
    chrispokorni Posts: 2,112

    Hi @acarra,

    A single bridged network adapter per VM worked well for VirtualBox VMs, with promiscuous mode enabled to allow all inbound traffic to the VM. With KVM a similar setting should be available to allow all inbound traffic to the VM.

    Regards,
    -Chris

Categories

Upcoming Training