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

spec.ephemeralContainers[0].targetContainerName: Not found #14

Open
amitoj opened this issue Nov 23, 2023 · 1 comment
Open

spec.ephemeralContainers[0].targetContainerName: Not found #14

amitoj opened this issue Nov 23, 2023 · 1 comment

Comments

@amitoj
Copy link

amitoj commented Nov 23, 2023

Getting this error attaching to a node-based pod

spec.ephemeralContainers[0].targetContainerName: Not found

What can I do to debug this further?

@jameyg42
Copy link

a lot of the kubectl debug examples seem to cover the case where the pod name and container name are the same which can be confusing. But the --target is actually the containerName (and you likely used the pod name instead - the error is simply saying the container itself cannot be found in the specified pod). kubectl get pods POD -ojsonpath='{.spec.containers[*].name}' should show the names of the containers in the pods.

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

2 participants