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

Seems the kubectl has build-in debug sub command, it conflicts with it #146

Open
melochale opened this issue Jun 15, 2021 · 2 comments
Open

Comments

@melochale
Copy link

melochale commented Jun 15, 2021

kubectl debug <pod-name>
error: you must specify --image when not using --copy-to.

https://kubernetes.io/docs/tasks/debug-application-cluster/debug-running-pod/#ephemeral-container

@xianzheTM
Copy link

@aylei
I have the same problem. This is my version of kubectl:

Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:52:14Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.8-aliyun.1", GitCommit:"2cbb16c", GitTreeState:"", BuildDate:"2021-01-27T02:20:04Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.21) and server (1.18) exceeds the supported minor version skew of +/-1

@JamesTGrant
Copy link
Collaborator

JamesTGrant commented Dec 1, 2021

yes, to workaround this call the binary directly, for example:
kubectl-debug --namespace NAMESPACE POD_NAME -c TARGET_CONTAINER_NAME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants