k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Attaching to pod cannot exit, need to restart k9s (Windows)

Open tsiukaris opened this issue 3 years ago • 1 comments




Describe the bug Hi, Windows user here with k9s version 0.26.3. When attaching to pod via "a", I can't exit the shell. TTY is not enabled in containers. The only way is to quit k9s by Ctrl-C.

To Reproduce Steps to reproduce the behavior:

  1. k9s for Windows, connect to any cluster
  2. Press "a" (attach) on any Pod without enabled tty
  3. When attached, press Escape or type anything to exit the shell

Expected behavior Exit back to k9s ui on pressing Escape

Versions (please complete the following information):

  • OS: Windows 10
  • K9s: 0.23.6
  • K8s: 1.21.2

tsiukaris avatar Sep 19 '22 10:09 tsiukaris

@tsiukaris does this happens also with exec and shell or just attach?

derailed avatar Sep 21 '22 23:09 derailed

@derailed whe using s (shell) typing exit works. Did not find any way to do exec on pod (not read-only mode). Anyway, thanks - I'll stick with shell

tsiukaris avatar Sep 25 '22 13:09 tsiukaris

This is still an issue I think... if you attach, then you can't leave. Quitting the shell isn't really what you want to do because you might want to attach again later.

PaulRudin avatar Apr 12 '23 08:04 PaulRudin