kubectl-debug: Error: No such image: nicolaka/netshoot:latest

Hi I run into this problem using agent-less default configuration. However, I found it works if I set verbose to 1 Looks wired.

Waiting for pod debug-agent-pod-xxx to run...
Forwarding from 127.0.0.1:10027 -> 10027
Forwarding from [::1]:10027 -> 10027
Handling connection for 10027
                             Start deleting agent pod my-pod-xxx
error execute remote, Internal error occurred: error attaching to container: Error: No such image: nicolaka/netshoot:latest
error: Internal error occurred: error attaching to container: Error: No such image: nicolaka/netshoot:latest

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 18 (3 by maintainers)

Most upvoted comments

@lwabish could you please try aylei/debug-agent:v0.1.1?

Just tried using kubectl debug ${POD_NAME} --agent-image=aylei/debug-agent:v0.1.1,worked as expected

Sorry for the late response, it is caused by an unstable debug-agent pushed to docker hub recently. It should have been fixed now, please run the command again to verify.

Since kubectl-debug plugin will still pull debug-agent:latest by default before #135 get fixed, it is recommend to configure or specify --agent-image=aylei/debug-agent:${version} if you are using a stable version of the plugin.