kubectl-debug icon indicating copy to clipboard operation
kubectl-debug copied to clipboard

how to avoid images always pulling?

Open hillbun opened this issue 4 years ago • 2 comments

My server has no internet connections I have load required images locally but when run kubectl-debug, it still pulling images.

hillbun avatar Jul 16 '20 04:07 hillbun

I was create a PR to solve this problem. #111

kchenzhi avatar Jul 22 '20 04:07 kchenzhi

has been resolved ? It seems that #111 didn't solve Container Image to run the debug container, default to nicolaka/netshoot:latest.

[root@node1 ~]# kubectl debug virt-launcher-centos78qcow-cgwml pod virt-launcher-centos78qcow-cgwml PodIP 10.233.90.180, agentPodIP 192.168.122.1 wait for forward port to debug agent ready... Forwarding from 127.0.0.1:10027 -> 10027 pulling image nicolaka/netshoot:latest... end port-forward... error execute remote, Internal error occurred: error attaching to container: 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) error: Internal error occurred: error attaching to container: 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)

todaygood avatar Oct 12 '20 09:10 todaygood