kubectl exec -it not working as intended in git-bash
adriananeci opened this issue · comments
When using kubectl exec -it
form git-bash it is throwing the following error:
Unable to use a TTY - input is not a terminal or the right kind of file
Seems to be a bug as reported in kubernetes/kubernetes#37471. The issue is still opened and some alternatives proposed are to use powershell or WSL or prepend kubectl command with winpty
utility.
One comment states that:
I don't think we can fix this. It seems like an issue in the Git bash environment only. This works in WSL, and it works with the native Windows binary. I would recommend opening an issue with the Git-SCM.org team that provides that bash shell.