aylei / kubectl-debug

This repository is no longer maintained, please checkout https://github.com/JamesTGrant/kubectl-debug.
Apache License 2.0
2.31k stars 303 forks source link

not output command result when excute no interactive command #138

Open wu0407 opened 3 years ago

wu0407 commented 3 years ago

version 0.1.1

# kubectl debug  nginx-net-77965ccb89-f4shq --image=nicolaka/netshoot -- echo a
container created, open tty...
# kubectl debug  nginx-net-77965ccb89-f4shq --image=nicolaka/netshoot -- bash -c "ip add"
container created, open tty...
# kubectl debug  nginx-net-77965ccb89-f4shq --image=nicolaka/netshoot -- bash -it -c "ip add"
container created, open tty...
# kubectl debug  nginx-net-77965ccb89-f4shq --image=nicolaka/netshoot -- ip add 
container created, open tty...