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

kube-ssh Error: No such container

Open avivais opened this issue 4 years ago • 7 comments

After kubernetes migrated to containerd and updating the plugin with the workaround, now I get the following error:

$ kubectl ssh -u root -n cms videocms-backend-7f75745599-qbrnk

Connecting...
Pod: videocms-backend-7f75745599-qbrnk
Namespace: cms
User: root
Container: NONE
Command: /bin/sh

Error: No such container: 212182d630c5d728aa2f06b809f41b15a1c599823e4d1195e64a9d15b2967e9a
pod cms/ssh-pod-13694 terminated (Error)

Can you shed some light on this?

avivais avatar Sep 14 '21 12:09 avivais

I'm facing to same issue, did you find a resolution for this?

valterartur avatar Sep 22 '21 13:09 valterartur

I'm facing to same issue, did you find a resolution for this?

Nope... still not working, still can't access as root to my pods

What about you @valterartur?

avivais avatar Oct 17 '21 08:10 avivais

Seeing the same issue here, anyone found a workaround?

NickAJScott avatar Jan 19 '22 13:01 NickAJScott

Noticed the same error. Do we have to SSH into the actual node to make this work?

jmorascalyr avatar Feb 28 '22 22:02 jmorascalyr

I have two nodes and get the same issue "Error: No such container:" on each node.

finalha avatar Mar 22 '22 03:03 finalha

same problem here.

rogaha avatar Jul 20 '22 00:07 rogaha

same issue

frexin avatar Nov 13 '23 19:11 frexin